Browse Source

Issue #15020: The program name used to search for Python's path is now "python3" under Unix, not "python".

pull/2332/head
Antoine Pitrou 14 years ago
parent
commit
01cca5e451
  1. 3
      Misc/NEWS
  2. 4
      Python/pythonrun.c

3
Misc/NEWS

@ -10,6 +10,9 @@ What's New in Python 3.2.4
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.

4
Python/pythonrun.c

@ -696,7 +696,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)

Loading…
Cancel
Save