]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32381: Add _PyRun_AnyFileObject() (GH-23723)
authorVictor Stinner <vstinner@python.org>
Wed, 9 Dec 2020 21:37:27 +0000 (22:37 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 21:37:27 +0000 (22:37 +0100)
commita82f63f5af027a0eab0f0812d750b804368cbd25
treeaa8703c8745915d904d05ef132c1aa96fb1fd911
parentca064402079f889226cb107b26b329891431c319
bpo-32381: Add _PyRun_AnyFileObject() (GH-23723)

pymain_run_file() no longer encodes the filename: pass the filename
as an object to the new _PyRun_AnyFileObject() function.

Add new private functions:

* _PyRun_AnyFileObject()
* _PyRun_InteractiveLoopObject()
* _Py_FdIsInteractive()
Include/cpython/pylifecycle.h
Include/cpython/pythonrun.h
Modules/main.c
Python/pylifecycle.c
Python/pythonrun.c