]> granicus.if.org Git - python/commit
bpo-35713: Reorganize sys module initialization (GH-11658)
authorVictor Stinner <vstinner@redhat.com>
Wed, 23 Jan 2019 14:04:40 +0000 (15:04 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Jan 2019 14:04:40 +0000 (15:04 +0100)
commitab67281e95de1a88c4379a75a547f19a8ba5ec30
treea3043f7cc6e3f9467169b72d04d61425f0a565e0
parentcda73a5af2ff064ca82140342b3158851d43868f
bpo-35713: Reorganize sys module initialization (GH-11658)

* Rename _PySys_BeginInit() to _PySys_InitCore().
* Rename _PySys_EndInit() to _PySys_InitMain().
* Add _PySys_Create(). It calls _PySys_InitCore() which becomes
  private.
* Add _PySys_SetPreliminaryStderr().
* Rename _Py_ReadyTypes() to _PyTypes_Init().
* Misc code cleanup.
Include/internal/pycore_pylifecycle.h
Objects/object.c
Python/pylifecycle.c
Python/sysmodule.c