Hello guys,

There is a bug in the Python compile function relating to the
'PyCF_DONT_IMPLY_DEDENT' flag (which was added to support the standard
library 'code' module.


Python 2.5:

>>> compile('def f():\n    print "hi"\n\n', '<input>', 'single', 
PyCF_DONT_IMPLY_DEDENT)
<code object <module> at 011572F0, file "<input>", line 1>

IronPython 2a8
>>> compile('def f():\n    print "hi"\n\n', '<input>', 'single', 
PyCF_DONT_IMPLY_DEDENT)
  File "<input>", line 4

    ^
SyntaxError: invalid syntax

Unfortunately this prevents me implementing an interactive interpreter
in Silverlight 2 using code.InteractiveConsole. :-(

If there is *any* way this can be fixed in a version of dynamic 
silverlight then we can still have this for PyCon. ;-)

All the best,

Michael Foord
http://www.manning.com/foord

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to