Message202326
| 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:00 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
| 2013年11月07日 11:48:00 | vstinner | set | messageid: <1383824880.09.0.781641455514.issue19518@psf.upfronthosting.co.za> |
| 2013年11月07日 11:47:59 | vstinner | link | issue19518 messages |
| 2013年11月07日 11:47:59 | vstinner | create |
|