SIGN IN SIGN UP

bpo-39796: Fix _warnings module initialization (GH-18739)

* Add _PyWarnings_InitState() which only initializes the _warnings
  module state (tstate->interp->warnings) without creating a module
  object
* Py_InitializeFromConfig() now calls _PyWarnings_InitState() instead
  of _PyWarnings_Init()
* Rename also private functions of _warnings.c to avoid confusion
  between the public C API and the private C API.
V
Victor Stinner committed
66b7973c1b2e6aa6a2462c6b13971a08cd665af2
Parent: 4482337
Committed by GitHub <noreply@github.com> on 3/2/2020, 2:02:18 PM