Re: [IronPython] Compiler flags and co_flags value

2006-06-22 Thread Martin Maly
We did make change in the co_flags but this is a case we probably missed.
I filed a bug on CodePlex (#567) for this issue and we'll try to fix it before 
the next release.

Martin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrzej Krzywda
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:
  x = compile(print 2/3, string, exec, 8192)
  x.co_flags
8256

IronPython Beta 8:
  x = compile(print 2/3, string, exec, 8192)
  x.co_flags
0

Andrzej Krzywda
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


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 doesn't deal correctly with compiler flags
(8192 is the compiler flag for __future__.division).

IronPython Beta 6

  exec(compile(print 2/3, string, exec, 8192), {})
0


CPython
  exec(compile(print 2/3, string, exec, 8192), {})
0.6667

Andrzej Krzywda
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
___
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com