| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
* Add definitions for "context", "current context", and "context
management protocol".
* Update related definitions to be consistent with the new
definitions.
* Restructure the documentation for the `contextvars.Context` class
to prepare for adding context manager support, and for consistency
with the definitions.
* Use `testcode` and `testoutput` to test the `Context.run` example.
* Expand the documentation for the `Py_CONTEXT_EVENT_ENTER` and
`Py_CONTEXT_EVENT_EXIT` events to clarify and to prepare for
planned changes.
There was a problem hiding this comment.
Excellent stuff. Thank you.
Sorry, something went wrong.
|
Huge +1. |
Sorry, something went wrong.
|
Sorry, @rhansen and @1st1, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 99400930ac1d4e5e10a5ae30f8202d8bc2661e39 3.13 |
Sorry, something went wrong.
|
@rhansen can you submit a PR against 3.13 please? |
Sorry, something went wrong.
|
GH-125233 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
I opened issue pythongh-124872 after creating PR pythongh-124773 but forgot to rename the blurb file to match the new issue number. (The cherry-pick to 3.13 in pythongh-125233 already uses this new filename.)
[3.13] gh-124872: Refine contextvars documentation * Add definitions for "context", "current context", and "context management protocol". * Update related definitions to be consistent with the new definitions. * Restructure the documentation for the `contextvars.Context` class to prepare for adding context manager support, and for consistency with the definitions. * Use `testcode` and `testoutput` to test the `Context.run` example. (cherry-picked from commit 9940093) Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
| Back | FazBrowse Home | New Git URL |
cc @fried
📚 Documentation preview 📚: https://cpython-previews--124773.org.readthedocs.build/