Strangely it doesn't seem to be in the documentation for compile() either :(

Do you know what this option does by any chance :) ?

I've opened bug #12908 
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=12908) so we 
at least have it tracked...

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord
Sent: Friday, September 21, 2007 12:57 PM
To: Discussion of IronPython
Subject: [IronPython] Missing Compiler Flag

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
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to