-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-128384: Use a context variable for warnings.catch_warnings #130010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
ba99f2e
Make _contextvars a builtin module.
nascheme 6d00c2a
Add 'context' parameter to Thread.
nascheme a868fe9
Tweak blurb markup.
nascheme 16fa2c3
Doc markup fix.
nascheme f0ccc8d
Use contextvar for catch_warnings().
nascheme bcadd20
Add blurb.
nascheme 0cfe578
Add "_warnings_context" as identifier.
nascheme 928c2df
Fix test_support for context var filters.
nascheme 65751d9
Regenerate 'configure' script.
nascheme 09e72b8
Rename flag to `thread_inherit_context`.
nascheme 75f1b38
Merge branch 'main' into thread_inherit_context
nascheme 872920d
Regenerate 'configure' script.
nascheme 5b6b59e
Merge branch 'thread_inherit_context' into gh-128384-warnings-contextvar
nascheme 9e955dc
Use separate flag `thread_safe_warnings`.
nascheme 3a56c64
Add doc for ``thread_safe_warnings`` flag.
nascheme daa3d52
Create _py_warnings.py for Python implementation.
nascheme 83419e4
Add _warnings_context to _warnings module.
nascheme 15443e8
Remove '_warnings_context' global string.
nascheme 983e7ee
Rename flag to 'context_aware_warnings'.
nascheme e5e660c
Use catch_warnings() for module under test.
nascheme e054a57
Don't pass 'module' to catch_warnings().
nascheme 2466cec
Correct error in warnings module docs.
nascheme 165a573
Use PyObject_GetAttr.
nascheme af8728d
Typo fix for docstring.
nascheme 1c02b7e
Avoid DECREF calls on None.
nascheme dba89e0
Add warnings.py module (missed in previous commit).
nascheme 2c48fc5
Add comment about why 'context' is passed in test.
nascheme 53eb72d
Revise "decimal' docs, adding note about flag.
nascheme 9cb6f73
Merge branch 'thread_inherit_context' into gh-128384-warnings-contextvar
nascheme f79daaa
Fix race in filter_search().
nascheme 5ca1d39
Add note to free-threading howto.
nascheme 9420a9d
Merge branch 'main' into gh-128384-warnings-contextvar
nascheme bad0fdb
Doc fixes for missing refs.
nascheme bb35c2e
Add "_py_warnings" to stdlib_module_names.h.
nascheme adf32cb
Improve error text in Python/_warnings.c
nascheme 47d0b6f
Avoid unused-variable warning in _warnings.c.
nascheme b880dd1
Minor code improvement to _warnings.c.
nascheme 5a1115b
Merge 'origin/main' into gh-128384-warnings-contextvar
nascheme ae701e3
Merge branch 'origin/main' into gh-128384-warnings-contextvar
nascheme 153c6b1
Merge 'origin/main' into gh-128384-warnings-contextvar
nascheme 9220223
Add extra unit tests.
nascheme c2c90cb
Use asyncio events to get deterministic execution.
nascheme c1def22
Merge 'origin/main' into gh-128384-warnings-contextvar
nascheme 4e461d9
Add unit test for asyncio tasks.
nascheme 543927b
Update Doc/howto/free-threading-python.rst
nascheme 4f11910
Use asyncio.gather() rather than create_task().
nascheme 42d157b
Call resetwarnings() in a few places.
nascheme File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Avoid unused-variable warning in _warnings.c.
- Loading branch information
commit 47d0b6f3d3a0f40e610ac68b4274411fbb110184
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.