-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
3.12 backport gh 105236 #105358
Closed
erlend-aasland
wants to merge
110
commits into
python:main
from
erlend-aasland:3.12-backport-gh-105236
Closed
3.12 backport gh 105236 #105358
erlend-aasland
wants to merge
110
commits into
python:main
from
erlend-aasland:3.12-backport-gh-105236
Conversation
This file contains 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
…python#104769) Add the 3.12 branch to the github workflows. (pythonGH-104768) (cherry picked from commit 4194d8f) Co-authored-by: T. Wouters <thomas@python.org>
Backport the workflow change and fix-ups: - pythonGH-92442 (e89c01e) - pythonGH-94129 (0dadb22) - pythonGH-98556 (194588d) Co-Authored-By: sterliakov <50529348+sterliakov@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
…ythonGH-104193) (python#104758) We now have our own translation and it's not outdated (cherry picked from commit 151b6bf) Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
…ythonGH-104760) pythonGH-104668: Don't call PyOS_* hooks in subinterpreters (pythonGH-104674) (cherry picked from commit 357bed0) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
…ng API. (pythonGH-104742) (python#104759) (cherry picked from commit e295d86) Co-authored-by: Mark Shannon <mark@hotpy.org>
…ation (pythonGH-104675) (python#104776) pythongh-99108: Release the GIL around hashlib built-in computation (pythonGH-104675) This matches the GIL releasing behavior of our existing `_hashopenssl` module, extending it to the HACL* built-ins. Includes adding comments to better describe the ENTER/LEAVE macros purpose and explain the lock strategy in both existing and new code. (cherry picked from commit 2e5d8a9) Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
pythonGH-104279) pythongh-104271: Fix auto() fallback in case of mixed type Enum
…any release. (pythonGH-104815) (cherry picked from commit 08b4eb8) Co-authored-by: Ned Deily <nad@python.org>
…t harness (pythonGH-104811) (python#104823) pythongh-103295: fix stack overwrite on 32-bit in perf map test harness (pythonGH-104811) (cherry picked from commit e0b3078) Co-authored-by: Carl Meyer <carl@oddbird.net>
) (python#104833) pythongh-104372: use == -1 before PyErr_Occurred (pythonGH-104831) The ideal pattern for this. (already in the 3.11 backport) (cherry picked from commit 7f963bf) Co-authored-by: Gregory P. Smith <greg@krypto.org>
…bc.Buffer (pythonGH-104827) (python#104841) pythongh-104797: Allow Protocols to inherit from collections.abc.Buffer (pythonGH-104827) (cherry picked from commit c0ab7d4) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
… New docs (pythonGH-104824) (python#104847) pythongh-102856: Add changes related to PEP 701 in 3.12 What's New docs (pythonGH-104824) (cherry picked from commit c45701e) Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…4852) (python#104854) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
… in tokens emitted in the tokenize module (pythonGH-104846). (python#104850) (cherry picked from commit c8cf9b4)
…es (gh… (pythongh-104853) [3.12] pythongh-101282: Enclose BOLT_APPLY_FLAGS value in double quotes (pythongh-104752) (cherry picked from commit c437851)
…ces. (pythonGH-104767) (python#104844) pythongh-104719: IDLE - test existence of all tokenize references. (pythonGH-104767) Class editor.IndentSearcher contains all editor references to tokenize module. Module io tokenize reference cover those other modules. (cherry picked from commit e561c09) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…on after PEP701 (pythonGH-104861) (python#104865) (cherry picked from commit 8e5b3b9) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Order of events: Terry merged new idlelib test into main. Ms. I. made a 3.12 backport; tests passed. Pablo merged the tokenize change with idlelib test fix into main. Pablo merged a 3.12 backport without the idle test fix as the backport of the latter had not yet been been merged. Terry merged the idlelib test backport. The new test failed on at least 4 3.12 buildbots because of the tokenize change. This PR backports the now needed idlelib test fix. (cherry picked from commit c8cf9b4)
…m is fixed by Apple in macOS 13.4. (pythonGH-104883)
…ock with comment (pythonGH-104870) (python#104872) pythongh-104866: Tokenize should emit NEWLINE after exiting block with comment (pythonGH-104870) (cherry picked from commit c90a862) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
…on#104889) Improve test coverage for is_typeddict (pythonGH-104884) In particular, it's important to test that is_typeddict(TypedDict) returns False. (cherry picked from commit 1497607) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…nGH-104881) (python#104890) (cherry picked from commit fe77a99) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
pythongh-99108: Refresh HACL* (pythonGH-104808) Refresh HACL* from upstream to improve SHA2 performance and fix a 32-bit issue in SHA3. (cherry picked from commit 160321e) Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
…) (python#104906) pythongh-104874: Document NewType.__supertype__ (pythonGH-104875) (cherry picked from commit 41768a2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
…python#104842) Fix test_importlib.test_side_effect_import() (pythonGH-104840) Wait until the thread spawn by the import completes to avoid dangling threads. With this fix, the following command no longer fails: ./python -m test --fail-env-changed test_importlib -m test_side_effect_import -F -j20 (cherry picked from commit 4269509) Co-authored-by: Victor Stinner <vstinner@python.org>
…) (python#104931) Fix indentation in `json.AttrDict` REPL example (pythonGH-104930) This is causing the docs to be rendered incorrectly. (cherry picked from commit 38539ef) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Correctly set the exit code when builds fail Also build docs as part of the test (cherry picked from commit 569b2b8) Co-authored-by: Steve Dower <steve.dower@python.org>
arhadthedev
removed request for
a team,
brettcannon,
gpshead,
vsajip,
warsaw,
encukou,
tiran,
JelleZijlstra,
barneygale,
ncoghlan,
iritkatriel,
ericsnowcurrently,
hugovk,
rhettinger,
gvanrossum,
corona10,
ethanfurman,
markshannon,
pablogsal,
terryjreedy,
lysnikolaou,
ezio-melotti,
Fidget-Spinner,
isidentical and
AlexWaygood
June 6, 2023 10:20
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PyOS_*
hooks interact poorly with subinterpreters #104668: Don't call PyOS_* hooks in subinterpreters ([3.12] GH-104668: Don't call PyOS_* hooks in subinterpreters (GH-104674) #104760)vfork()
until the child processexec()
succeeds or fails. #104372: use == -1 before PyErr_Occurred (gh-104372: use == -1 before PyErr_Occurred #104831) ([3.12] gh-104372: use == -1 before PyErr_Occurred (GH-104831) #104833)collections.abc.Buffer
andtyping.Protocol
#104797: Allow Protocols to inherit from collections.abc.Buffer (gh-104797: Allow Protocols to inherit from collections.abc.Buffer #104827) ([3.12] gh-104797: Allow Protocols to inherit from collections.abc.Buffer (GH-104827) #104841).py
files #104719: IDLE - test existence of all tokenize references. (gh-104719: IDLE - test existence of all tokenize references. #104767) ([3.12] gh-104719: IDLE - test existence of all tokenize references. (GH-104767) #104844)NewType.__supertype__
#104874: Document NewType.supertype (gh-104874: Document NewType.__supertype__ #104875) ([3.12] gh-104874: Document NewType.__supertype__ (GH-104875) #104906)json.AttrDict
REPL example (Fix indentation injson.AttrDict
REPL example #104930) ([3.12] Fix indentation injson.AttrDict
REPL example (GH-104930) #104931)@runtime_checkable
andGeneric
(gh-104935: typing: Fix interactions between @runtime_checkable and Generic #104939) ([3.12] gh-104935: typing: Fix interactions between@runtime_checkable
andGeneric
(GH-104939) #104941)vfork()
until the child processexec()
succeeds or fails. #104372: Drop the GIL around the vfork() call. (gh-104372: Drop the GIL around the vfork() call. #104782) ([3.12] gh-104372: Drop the GIL around the vfork() call. (GH-104782) #104942)typing.NamedTuple
docstring #104943: Remove mentions of old Python versions (gh-104943: Remove mentions of old Python versions #104945) ([3.12] gh-104943: Remove mentions of old Python versions (GH-104945) #104963)read()able
inhttp.client
log messages (gh-104924: Fixread()able
inhttp.client
log messages #104926) ([3.12] gh-104924: Fixread()able
inhttp.client
log messages (gh-104926) #104970)__release_buffer__
is incorrect #104955: Fix release_buffer signature (gh-104955: Fix __release_buffer__ signature #104956) ([3.12] gh-104955: Fix __release_buffer__ signature (GH-104956) #104973)tokenize.generate_tokens
incorrectly indicate multiple lines. #104972: Ensure that line attributes in tokens in the tokenize module are correct (gh-104972: Ensure that line attributes in tokens in the tokenize module are correct #104975) ([3.12] gh-104972: Ensure that line attributes in tokens in the tokenize module are correct (GH-104975) #104982)PurePosixPath(PureWindowsPath(...))
separator handling (GH-103631: FixPurePosixPath(PureWindowsPath(...))
separator handling #104949) ([3.12] GH-103631: FixPurePosixPath(PureWindowsPath(...))
separator handling (GH-104949) #104991)test_tkinter
fails on refleak run due tosupport
confusion #105077: Fix test_tkinter refleak checking (gh-105077: Fix test_tkinter refleak checking #105078) ([3.12] gh-105077: Fix test_tkinter refleak checking (GH-105078) #105079)__match_args__
attributes of AST nodes #104799: Move location of type_params AST fields (gh-104799: Move location of type_params AST fields #104828) ([3.12] gh-104799: Move location of type_params AST fields (GH-104828) #104974)ast
module docs (gh-103921: Minor PEP-695 fixes to theast
module docs #105093) ([3.12] gh-103921: Minor PEP-695 fixes to theast
module docs (GH-105093) #105101)super()
#105035: fix super() calls on unusual types (e.g. meta-types) (gh-105035: fix super() calls on unusual types (e.g. meta-types) #105094) ([3.12] gh-105035: fix super() calls on unusual types (e.g. meta-types) (GH-105094) #105117)typing.Protocol
and unrelatedisinstance()
checks #105144: Runtime-checkable protocols: move all 'sanity checks' to_ProtocolMeta.__subclasscheck__
(gh-105144: Runtime-checkable protocols: move all 'sanity checks' to_ProtocolMeta.__subclasscheck__
#105152) ([3.12] gh-105144: Runtime-checkable protocols: move all 'sanity checks' to_ProtocolMeta.__subclasscheck__
(GH-105152) #105160)pathlib.PurePath.match()
#105113: Improve performance ofpathlib.PurePath.match()
([3.12] GH-105113: Improve performance ofpathlib.PurePath.match()
#105114)tp_bases
ofobject
isNULL
: undocumented or unintentional behavior change in 3.12? #105020: Share tp_bases and tp_mro Between Interpreters For All Static Builtin Types (gh-105020: Share tp_bases and tp_mro Between Interpreters For All Static Builtin Types #105115) ([3.12] gh-105020: Share tp_bases and tp_mro Between Interpreters For All Static Builtin Types (gh-105115) #105124)__match_args__
attributes of AST nodes #104799: Default missing lists in AST to the empty list (gh-104799: Default missing lists in AST to the empty list #104834) ([3.12] gh-104799: Default missing lists in AST to the empty list (GH-104834) #105213)IP_*
constants insocket
module in the docs (gh-89415: Mention newIP_*
constants insocket
module in the docs #105266) ([3.12] gh-89415: Mention newIP_*
constants insocket
module in the docs (GH-105266) #105270)socket.getblocking()
andsocket.gettimeout()
(gh-104882: Docs: fix description of relationship betweensocket.getblocking()
andsocket.gettimeout()
#105026) ([3.12] gh-104882: Docs: fix description of relationship betweensocket.getblocking()
andsocket.gettimeout()
(GH-105026) #105283)property
assumes that its subclasses have __dict__ #98963: Restore the ability to have a dict-less property. (gh-98963: Restore the ability to have a dict-less property. #105262) ([3.12] gh-98963: Restore the ability to have a dict-less property. (GH-105262) #105297)match
block does not generateSETUP_ANNOTATIONS
#105164: Detect annotations inside match blocks (gh-105164: Detect annotations inside match blocks #105177) ([3.12] gh-105164: Detect annotations inside match blocks (GH-105177) #105313)issubclass()
againsttyping.Protocol
on Python 3.12 #105237: Allow callingissubclass(X, typing.Protocol)
again (gh-105237: Allow callingissubclass(X, typing.Protocol)
again #105239) ([3.12] gh-105237: Allow callingissubclass(X, typing.Protocol)
again (GH-105239) #105316)typing.Protocol
implementation means thatisinstance([], collections.abc.Mapping)
can sometimes evaluate toTrue
#105280: Ensureisinstance([], collections.abc.Mapping)
always evaluates toFalse
(gh-105280: Ensureisinstance([], collections.abc.Mapping)
always evaluates toFalse
#105281) ([3.12] gh-105280: Ensureisinstance([], collections.abc.Mapping)
always evaluates toFalse
(GH-105281) #105318)typing.py
docstrings #105286: Improvetyping.py
docstrings (gh-105286: Improvetyping.py
docstrings #105287) ([3.12] gh-105286: Improvetyping.py
docstrings (#105287) #105319)📚 Documentation preview 📚: https://cpython-previews--105358.org.readthedocs.build/