[IronPython] Missing Compiler Flag
Michael Foord
fuzzyman at voidspace.org.uk
Fri Sep 21 21:56:30 CEST 2007
Hello all,
There's another problem with the interactive interpreter in IronPython
(it affects the ability to use the code standard library module).
The PyCF_DONT_IMPLY_DEDENT compiler flag is not recognised in IronPython.
The flag is defined in the 'codeop' standard library module:
PyCF_DONT_IMPLY_DEDENT = 0x200 # Matches pythonrun.h
Attempting to use this in IronPython:
>>> compile('print x', 'test', 'single', 0x200, 1)
Traceback (most recent call last):
File , line 0, in <stdin>##1
File , line 0, in Compile##4
ValueError: unrecognized flags
Without this flag the code module can't recognize blocks of code with
several indented lines. :-(
All the best,
Michael Foord
http://www.manning.com/foord
More information about the Ironpython-users
mailing list