Kristján Valur Jónsson <krist...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7741> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com