| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
By default, inherit the context from the thread calling `Thread.start()`.
Expose the mutex from _warnings.c and hold it when mutating the filters list or the filters version.
| Back | FazBrowse Home | New Git URL |
This changes warnings.catch_warnings() to use a contextvar for the new list of filters. If catch_warnings is not used, the list of filters is the module global warnings.filters. When the context manager is active, the effective list of filters is warnings.get_context()._filters.
This change is on top of two other unmerged PRs:
📚 Documentation preview 📚: https://cpython-previews--128463.org.readthedocs.build/