[IronPython] Interesting problems with compiling IP2 programs....
Srivatsn Narayanan
srivatsn at microsoft.com
Fri Aug 8 22:48:32 CEST 2008
Looks like this has already been fixed in the latest sources. This reproes with the beta4 binaries but works fine with the latest binaries from our depot (once I have thrown in stat.py and userdict.py anyway). There was an import related checkin that went in this Monday. That might have fixed this I believe. The latest sources are up on codeplex. So if you wish you could sync and try it out. Thanks for reporting this.
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of David.Lawler at franke.com
Sent: Friday, August 08, 2008 7:58 AM
To: Discussion of IronPython
Subject: [IronPython] Interesting problems with compiling IP2 programs....
Unfortunately, now you will be 'punished' for releasing pyc.py. The
following code does some funny things when compiled:
print "1"
import clr
print "2"
import os
print "3"
print os.getcwd()
import sys
print "4"
print sys.version
This works fine if you launch it as a script with IP2. You get:
1
2
3
C:\Documents and Settings\LD003\My Documents\Python
Projects\CompileProblem
4
2.5.0 (IronPython 2.0 Beta (2.0.0.4000) on .NET 2.0.50727.1433)
>Exit code: 0
If you compile it and shove os.py and ntpath.py into the directory it
lives in (along with the required dll's)....
you get:
1
2
and then the program hangs....eats memory....and eventually dies with a
StackOverflowException.
if you comment out import os, print "3", print os.getcwd() you get:
1
2
4
2.5.0 ()
not exactly the same result. For me this is not an urgent fix....for
other folks....you are warned.
Regards,
David
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list