This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Move the warnings runtime state into per-interpreter state.
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.8
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: eric.snow Nosy List: eric.snow
Priority: normal Keywords: patch

Created on 2019-05-07 16:09 by eric.snow, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13159 open eric.snow, 2019-05-07 16:11
Messages (2)
msg341763 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2019-05-07 16:09
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)

I have a patch for the first option.
msg341765 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2019-05-07 16:15
dupe of #36737
History
Date User Action Args
2022-04-11 14:59:14adminsetgithub: 81016
2019-05-07 16:15:14eric.snowsetstatus: open -> closed
resolution: duplicate
messages: + msg341765

stage: patch review -> resolved
2019-05-07 16:11:53eric.snowsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request13076
2019-05-07 16:09:33eric.snowcreate