New submission from Steven D'Aprano <steve+pyt...@pearwood.info>:
The warnings module makes use of a per-module global ``__warningregister__`` which is briefly mentioned in the docs but not documented. https://docs.python.org/3/library/warnings.html#warnings.warn_explicit Given that it is part of the warn_explicit API, we should accept that the registry file is now part of the public API not just an implementation detail, and so we should explicitly document its existence and state the expected format. ---------- components: Library (Lib) messages: 327449 nosy: steven.daprano priority: normal severity: normal status: open title: Document __warningregister__ type: behavior _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34948> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com