[Python-checkins] cpython (3.2): Issue #15020: The program name used to search for Python's path is now
antoine.pitrou
python-checkins at python.org
Thu Jul 5 20:59:30 CEST 2012
http://hg.python.org/cpython/rev/c97d78415f5a
changeset: 77949:c97d78415f5a
branch: 3.2
parent: 77946:fcbd3bda7c0f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Thu Jul 05 20:56:30 2012 +0200
summary:
Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python".
files:
Misc/NEWS | 3 +++
Python/pythonrun.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@
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
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -696,7 +696,11 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list