[IronPython] 2.7Beta1 Bug in Compile Modules
Bruce Bromberek
bruce.bromberek at gmail.com
Tue Nov 9 17:45:04 CET 2010
In trying to compile the StdLib for a program, I kept running into an
error with BaseHTTPServer.py. I've isolated it down to an issue with
Dictionaries and tuples.
This code:
responses = {
100: ('Continue', 'Request received, please continue'),
}
Generates this error:
Traceback (most recent call last):
File "pyc.py", line 159, in <module>
File "pyc.py", line 151, in Main
SystemError: CompileToMethod cannot compile constant '('Continue',
'Request received, please continue')' because it is a non-trivial
value, such as a live object. Instead, create an expression tree that
can construct this value.
However, these constructs work fine:
x = ('Continue', 'Request received, please continue')
responses = {
100: x,
}
responses = {
100: ('Continue'),
}
Is this a known issue?
Bruce
More information about the Ironpython-users
mailing list