जब मैं आईपीथन 0.10 को निर्देशों के अनुसार एम्बेड करता हूं तो कुछ सूची समझ ठीक से काम नहीं करती हैं। मेरे वैश्विक नामस्थान के साथ क्या चल रहा है?मैं काम कर रहे जनरेटर अभिव्यक्तियों के साथ आईपीथन कैसे एम्बेड करूं?
$ python
>>> import IPython.Shell
>>> IPython.Shell.IPShellEmbed()()
In [1]: def bar(): pass
...:
In [2]: list(bar() for i in range(10))
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/<ipython console>
/tmp/<ipython console> in <generator expression>([outmost-iterable])
NameError: global name 'bar' is not defined