[issue36835] Move the warnings runtime state into per-interpreter state.

2019-05-07 Thread Eric Snow
Eric Snow added the comment: dupe of #36737 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36835] Move the warnings runtime state into per-interpreter state.

2019-05-07 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +13076 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue36835] Move the warnings runtime state into per-interpreter state.

2019-05-07 Thread Eric Snow
New submission from Eric Snow : Currently the warnings module uses runtime-global state (PyRuntimeState.warnings). That should be moved down to per-interpreter state. There are three possible places: 1. the module's "module state" 2. the module's __dict__ 3. PyInterpreterState.warnings (new