[issue7741] Allow multiple statements in code.InteractiveConsole.push
Kristján Valur Jónsson
report at bugs.python.org
Tue Jan 19 16:09:08 CET 2010
Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:
Here is how to test this manually:
from code import InteractiveConsole
c = InteractiveConsole()
s = "if True:\n print 1\nprint 2"
c.push(s) #fails
c.push(s, "exec") #succeeds
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7741>
_______________________________________
More information about the Python-bugs-list
mailing list