Drekin added the comment:

Hello. Will this be fixed? It's really annoying that you cannot pass valid 
unicode filename to compile(). I'm using a workaround: I just pass 
"<placeholder>" and then “update” the resulting code object recursively to set 
the correct co_filename. Afterwards the code object can be executed and 
produces correct tracebacks. (I'm using Windows.)

Fixing this will probably fix also http://bugs.python.org/issue17588 . It 
doesn't bother just me. See e.g. 
http://stackoverflow.com/questions/8798591/unicodeencodeerror-when-using-the-compile-function
 .

Thank you. Drekin

----------
nosy: +Drekin

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13758>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to