7

Closed

pyc fails if a file contains a call to unicode

description

Calling pyc on a file that only contains:
 
unicode('trial')
 
fails with the following error:
Traceback (most recent call last):
File "pyc\pyc.py", line 159, in <module>
File "pyc\pyc.py", line 151, in Main
SystemError: CompileToMethod cannot compile constant 'IronPython.Runtime.Types.B
uiltinFunction' because it is a non-trivial value, such as a live object. Instea
d, create an expression tree that can construct this value.
Closed Feb 19, 2012 at 10:57 AM by slide_o_mix
Works in 2.7.1

comments

gjones wrote Mar 26, 2010 at 3:16 PM

I should mention that this didn't happen with 2.6 and that it can be reproduced on change set 64949

rjnienaber wrote Dec 11, 2010 at 9:26 PM

This seems to be working in 2.7b1.

jdhardy wrote Dec 17, 2010 at 10:13 PM

This is still broken in 2.6.2.

slide_o_mix wrote Feb 9, 2012 at 6:20 PM

Can we close this out as working in 2.7.1?