1
Vote

How does IronPython Studio compiles projects ?

description

I use IronPython Studio to compile my projects but I'd like to know which command does it use. Because I tried to do it using pyc.py, compilation goes fine but when I launch the program, an exception is Raised.
 
Unhandled Exception: System.MissingMemberException: 'namespace#' object has no attribute 'DateTime'
at _stub_$677##350(Closure , CallSite , Object , CodeContext )
at Microsoft.Scripting.Actions.MatchCaller.Call2[T0,T1,TRet](Func4 target, CallSite site, Object[] args)
at Microsoft.Scripting.Actions.CallSite
1.UpdateAndExecute(Object[] args)
at Microsoft.Scripting.Actions.UpdateDelegates.Update2[T,T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at S$2.initDateTimeFields$24(Closure , Object self)
at _stub_$388##100(Closure , CallSite , CodeContext , Object , Object )
...
 
Error that I don't get with the same program compiled with IronPython Studio or directly launched from a Terminal.
 
So what I'd like to know is how IronPython compiles projects.

comments

jazzcat wrote May 1, 2009 at 12:32 PM

From what I know, IronPython projects aren't "compiled". The .NET assembly for a given class or program consists of the ipy interpreter, which in turn interprets the Python code.

wrote Feb 21, 2013 at 11:11 PM