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 vstinner
Recipients serhiy.storchaka, vstinner
Date 2013-11-07.11:47:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383824880.09.0.781641455514.issue19518@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-11-07 11:48:00vstinnersetrecipients: + vstinner, serhiy.storchaka
2013-11-07 11:48:00vstinnersetmessageid: <1383824880.09.0.781641455514.issue19518@psf.upfronthosting.co.za>
2013-11-07 11:47:59vstinnerlinkissue19518 messages
2013-11-07 11:47:59vstinnercreate