[issue19518] Add new PyRun_xxx() functions to not encode the filename

Nick Coghlan report at bugs.python.org
Wed Nov 20 15:13:57 CET 2013


Nick Coghlan added the comment:

Perhaps we could we use the suffix "Unicode" rather than "Object"? These don't work with arbitrary objects, they expect a unicode string.

PyRun_InteractiveOneObject would be updated to use the new suffix as well.

That would both be clearer for the user, and address Serhiy's concern about the possible ambiguity: PyRun_FileUnicode still isn't crystal clear, but it's clearer than PyRun_FileObject.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19518>
_______________________________________


More information about the Python-bugs-list mailing list