mirror of
https://github.com/python/cpython.git
synced 2026-05-11 13:00:47 +00:00
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
pymain_run_startup() now pass the filename as a Python object to _PyRun_SimpleFileObject().
This commit is contained in:
parent
98a5417193
commit
550e4673be
3 changed files with 25 additions and 33 deletions
|
|
@ -3,6 +3,11 @@
|
|||
#endif
|
||||
|
||||
PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *);
|
||||
PyAPI_FUNC(int) _PyRun_SimpleFileObject(
|
||||
FILE *fp,
|
||||
PyObject *filename,
|
||||
int closeit,
|
||||
PyCompilerFlags *flags);
|
||||
PyAPI_FUNC(int) PyRun_AnyFileExFlags(
|
||||
FILE *fp,
|
||||
const char *filename, /* decoded from the filesystem encoding */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue