summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2017-05-24 06:00:52 (GMT)
committerGitHub <noreply@github.com>2017-05-24 06:00:52 (GMT)
commitc7ec9985bbdbb2b073f2c37febd18268817da29a (patch)
tree4e3c90c24c8ec2aa0143949ab129d3d98258f9ef /Python/pythonrun.c
parent9e98cd0383d9e7f06c0537038a32459bf5efa97a (diff)
downloadcpython-c7ec9985bbdbb2b073f2c37febd18268817da29a.zip
cpython-c7ec9985bbdbb2b073f2c37febd18268817da29a.tar.gz
cpython-c7ec9985bbdbb2b073f2c37febd18268817da29a.tar.bz2
bpo-22257: Private C-API for main interpreter initialization (PEP 432). (#1729)
(patch by Nick Coghlan)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index b7016d1..f31b3ee 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1,5 +1,12 @@
-/* Python interpreter top-level routines, including init/exit */
+/* Top level execution of Python code (including in __main__) */
+
+/* To help control the interfaces between the startup, execution and
+ * shutdown code, the phases are split across separate modules (boostrap,
+ * pythonrun, shutdown)
+ */
+
+/* TODO: Cull includes following phase split */
#include "Python.h"
@@ -59,7 +66,6 @@ static void err_input(perrdetail *);
static void err_free(perrdetail *);
/* Parse input from a file and execute it */
-
int
PyRun_AnyFileExFlags(FILE *fp, const char *filename, int closeit,
PyCompilerFlags *flags)