Sent: Thursday, June 22, 2006 10:16 AM
To: Discussion of IronPython
Subject: [IronPython] Compiler flags and co_flags value
Hi all,
It's good to see that the compiler flags are now working in IronPython
Beta8.
However, the compiled code object doesn't return valid co_flags value:
CPython:
Hi all,
It's good to see that the compiler flags are now working in IronPython
Beta8.
However, the compiled code object doesn't return valid co_flags value:
CPython:
>>> x = compile("print 2/3", "", "exec", 8192)
>>> x.co_flags
8256
IronPython Beta 8:
>>> x = compile("print 2/3", "", "exec"
A great bug, thanks! We'll fix it.
Martin
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrzej Krzywda
Sent: Monday, May 08, 2006 8:09 AM
To: users@lists.ironpython.com
Subject: [IronPython] Compiler flags
Hi all,
It seems that IronPython do
Hi all,
It seems that IronPython doesn't deal correctly with compiler flags
(8192 is the compiler flag for __future__.division).
IronPython Beta 6
>>> exec(compile("print 2/3", "", "exec", 8192), {})
0
CPython
>>> exec(compile("print 2/3", "", "exec", 8192), {})
0.6667
Andrzej Krzy