[Python-3000] basestring removal, __file__ and co_filename

Christian Heimes lists at cheimes.de
Thu Oct 11 19:26:23 CEST 2007


Guido van Rossum wrote:
> Hm, can't we make co_filename a PyUnicode instance?

I already did it in my patch but doesn't it cause a problem when the
encoding isn't UTF-8? I may understand
PyUnicode_FromString(PyString_AS_STRING(filename)) wrong. Doesn't it
decode filename from UTF-8?

Christian


More information about the Python-3000 mailing list