Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e128235
Add safe context watcher API
florentinl Jul 23, 2026
fc02fb9
Add newsfragment
florentinl Jul 23, 2026
c6f424b
Refine context API availability
florentinl Jul 23, 2026
3f70777
Guard macro-dependent context tests
florentinl Jul 23, 2026
d238aee
Refine context watcher safety and tests
florentinl Jul 23, 2026
694a3a9
add forgotten guard test
florentinl Jul 27, 2026
dafb6af
Isolate forgotten context watcher test
florentinl Jul 27, 2026
b5d47c4
Simplify context watcher event conversion
florentinl Jul 28, 2026
cc6106b
Address context watcher review nits
florentinl Aug 13, 2026
2a9397e
add context watcher guard as associated method
davidhewitt Aug 22, 2026
7926e54
Use checked context watcher event conversion
florentinl Aug 27, 2026
b09e949
Remove watcher-specific trampoline error check
florentinl Aug 27, 2026
ac88a33
Support unbound context watcher guards
florentinl Aug 27, 2026
c5636e5
Fix race in unbound context watcher test
florentinl Aug 27, 2026
c0e49d7
Fix race in unbound context watcher clear test
florentinl Aug 27, 2026
8edd88a
Refactor context watcher tests
florentinl Aug 27, 2026
5e5eb07
Apply suggestions from code review
florentinl Aug 31, 2026
f623224
Reduce context watcher trampoline code size
florentinl Aug 31, 2026
e7eca08
Handle watcher callbacks which leave exceptions set
florentinl Aug 31, 2026
349d904
Use no-std mutex helper in context watcher tests
florentinl Aug 31, 2026
9def052
Skip threaded context watcher test on wasm
florentinl Sep 2, 2026
1f0fe5a
Skip watcher panic test without std
florentinl Sep 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions newsfragments/6227.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Add `PyContext`, as well as `PyContext::add_watcher`, `watch_callback!`, `ContextEvent`,
`BoundContextWatcherGuard`, and `ContextWatcherGuard` for watching `contextvars.Context` on
GIL-enabled CPython 3.14+. `PyContext` itself is available on all supported CPython versions.
Loading
Loading