This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Drekin
Recipients Drekin, terry.reedy
Date 2013-08-23.09:07:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377248825.37.0.745006246108.issue13758@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-08-23 09:07:05Drekinsetrecipients: + Drekin, terry.reedy
2013-08-23 09:07:05Drekinsetmessageid: <1377248825.37.0.745006246108.issue13758@psf.upfronthosting.co.za>
2013-08-23 09:07:05Drekinlinkissue13758 messages
2013-08-23 09:07:05Drekincreate