FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-126451: Register contextvars.Context to collections.abc.Mapping by tungol · Pull Request #126452 · python/cpython · GitHub

/ cpython Public

gh-126451: Register contextvars.Context to collections.abc.Mapping - #126452

Merged
sobolevn merged 10 commits into
python:mainfrom
tungol:contextvars-abc
Nov 6, 2024
Merged

gh-126451: Register contextvars.Context to collections.abc.Mapping#126452
sobolevn merged 10 commits into
python:mainfrom
tungol:contextvars-abc

Conversation

tungol commented Nov 5, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

This MR registers contextvars.Context to collections.abc.Mapping. It's already documented that Context implements the Mapping interface.

tungol commented Nov 5, 2024

Copy link
Copy Markdown
Contributor Author

The test failure doesn't reproduce locally for me, and I'm not sure how my MR is related. I'm open to suggestions.

Comment thread Lib/test/test_context.py Outdated

sobolevn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you!

…JMtqz.rst

Co-authored-by: sobolevn <mail@sobolevn.me>
Comment thread Lib/contextvars.py Outdated
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Comment thread Lib/test/test_context.py Outdated
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Comment thread Lib/test/test_context.py
AlexWaygood added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Nov 6, 2024

ZeroIntensity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, with one extra nitpick about adding an issubclass check to the test.

Comment thread Lib/test/test_context.py
tungol and others added 3 commits November 6, 2024 09:40
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
sobolevn merged commit 5dc36dc into python:main Nov 6, 2024

Copy link
Copy Markdown

Thanks @tungol for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

sobolevn commented Nov 6, 2024

Copy link
Copy Markdown
Member

Thanks everyone!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2024
…ing (pythonGH-126452)

(cherry picked from commit 5dc36dc)

Co-authored-by: Stephen Morton <git@tungol.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
sobolevn removed needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Nov 6, 2024

bedevere-app Bot commented Nov 6, 2024

Copy link
Copy Markdown

GH-126518 is a backport of this pull request to the 3.13 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2024
…ing (pythonGH-126452)

(cherry picked from commit 5dc36dc)

Co-authored-by: Stephen Morton <git@tungol.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

bedevere-app Bot commented Nov 6, 2024

Copy link
Copy Markdown

GH-126519 is a backport of this pull request to the 3.12 branch.

sobolevn commented Nov 6, 2024
edited
Loading

Copy link
Copy Markdown
Member

Should we really backport this?

Copy link
Copy Markdown
Member

We backported #126419 (see discussion in that PR). But I agree it's borderline; I don't feel strongly! Feel free to close the backports if you'd rather not.

sobolevn commented Nov 6, 2024

Copy link
Copy Markdown
Member

Let's be consistent with #126419 👍

sobolevn added a commit that referenced this pull request Nov 6, 2024
…ping (GH-126452) (#126519)

gh-126451: Register contextvars.Context to collections.abc.Mapping (GH-126452)
(cherry picked from commit 5dc36dc)

Co-authored-by: Stephen Morton <git@tungol.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
sobolevn added a commit that referenced this pull request Nov 6, 2024
…ping (GH-126452) (#126518)

gh-126451: Register contextvars.Context to collections.abc.Mapping (GH-126452)
(cherry picked from commit 5dc36dc)

Co-authored-by: Stephen Morton <git@tungol.org>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
tungol deleted the contextvars-abc branch November 6, 2024 22:43
AlexWaygood added a commit to AlexWaygood/cpython that referenced this pull request Nov 12, 2024
AlexWaygood added a commit to AlexWaygood/cpython that referenced this pull request Nov 12, 2024
picnixz pushed a commit to picnixz/cpython that referenced this pull request Dec 8, 2024
…ing (python#126452)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…ing (python#126452)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL