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 

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:

Python tracker <>
Python-bugs-list mailing list

Reply via email to