[IronPython] clr.CompileModules fails on some python standard lib modules

Hernan M Foffani hfoffani at gmail.com
Wed Jun 2 02:07:29 PDT 2010


Several standard lib modules fails to compile through the use of
clr.CompileModules(..). Compiling modules like decimal.py, gettext.py,
glob.py and others (nine in total) all fail with the same message:

SystemError: CompileToMethod cannot compile constant
'IronPython.Runtime.Types.BuiltinFunction' because it is a non-trivial
value, such as a live object. Instead, create an expression tree that
can construct this value.

Is this a known problem? Are we expecting too much trying to compile
the standard library with clr.CompileModules() and this is not a
supported behaviour?

We are using IronPython 2.6.1 for .NET 2.0.

Regards,
-Hernán.


More information about the Users mailing list