summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS3
-rw-r--r--Python/pythonrun.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ab02a97..a78f72b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ What's New in Python 3.3.0 Beta 2?
Core and Builtins
-----------------
+- Issue #15020: The program name used to search for Python's path is now
+ "python3" under Unix, not "python".
+
- Issue #15033: Fix the exit status bug when modules invoked using -m swith,
return the proper failure return value (1). Patch contributed by Jeff Knupp.
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 465aa7d..a9ed588 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -778,7 +778,11 @@ Py_EndInterpreter(PyThreadState *tstate)
PyInterpreterState_Delete(interp);
}
+#ifdef MS_WINDOWS
static wchar_t *progname = L"python";
+#else
+static wchar_t *progname = L"python3";
+#endif
void
Py_SetProgramName(wchar_t *pn)