New submission from STINNER Victor: The changeset af822a6c9faf of the issue #19512 added the function PyRun_InteractiveOneObject(). By the way, I forgot to document this function. This issue is also a reminder for that. The purpose of the new function is to avoid creation of temporary Unicode strings and useless call to Unicode encoder/decoder.
I propose to generalize the change to other PyRun_xxx() functions. Attached patch adds the following functions: - PyRun_AnyFileObject() - PyRun_SimpleFileObject() - PyRun_InteractiveLoopObject() - PyRun_FileObject() On Windows, these changes should allow to pass an unencodable filename on the command line (ex: japanese script name on an english setup). TODO: I should document all these new functions. ---------- files: pyrun_object.patch keywords: patch messages: 202326 nosy: haypo, serhiy.storchaka priority: normal severity: normal status: open title: Add new PyRun_xxx() functions to not encode the filename versions: Python 3.4 Added file: http://bugs.python.org/file32524/pyrun_object.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19518> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com