Re: [IronPython] Compiler flags and co_flags value

2006-06-22 Thread Martin Maly
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:

[IronPython] Compiler flags and co_flags value

2006-06-22 Thread Andrzej Krzywda
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"

Re: [IronPython] Compiler flags

2006-05-08 Thread Martin Maly
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

[IronPython] Compiler flags

2006-05-08 Thread Andrzej Krzywda
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