-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Implement PEP 649 #119180
Labels
Comments
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
May 21, 2024
The PEP 649 implementation will require a way to load NotImplementedError from the bytecode. @markshannon suggested implementing this by converting LOAD_ASSERTION_ERROR into a more general mechanism for loading constants. This PR adds this new opcode. I will work on the rest of the implementation of the PEP separately.
This was referenced May 21, 2024
JelleZijlstra
added a commit
that referenced
this issue
May 22, 2024
The PEP 649 implementation will require a way to load NotImplementedError from the bytecode. @markshannon suggested implementing this by converting LOAD_ASSERTION_ERROR into a more general mechanism for loading constants. This PR adds this new opcode. I will work on the rest of the implementation of the PEP separately. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
ambv
pushed a commit
that referenced
this issue
May 22, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
May 22, 2024
but did not actually apply the new magic number.
JelleZijlstra
added a commit
that referenced
this issue
May 25, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
May 31, 2024
JelleZijlstra
added a commit
that referenced
this issue
May 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

PEP-649 has been accepted and should be implemented in PEP 649. Let's use this issue to track the implementation:
__annotate__attributes gh-119180: PEP 649: Add __annotate__ attributes #119209formatargument toinspect.get_annotationsgh-119180: Addannotationsmodule to support PEP 649 #119891inspect.AnnotationsFormatshould be a "global enum". Is that desirable? TBD. https://github.com/python/cpython/pull/119361/files#r1614753031)annotationsmodule to support PEP 649 #119891inspect. (If it can't be removed, get rid of the awkward dance we do fortyping.Protocolto importinspect.getattr_staticlazily.)annotationsmodule to support PEP 649 #119891annotationsmodule to support PEP 649 #119891pep649-typevarbranch in my fork)__dict____dict__access (Support Python 3.13 quora/pyanalyze#773)I am planning to work on the interpreter core first.
cc @larryhastings @carljm @samuelcolvin
Linked PRs
annotationsmodule to support PEP 649 #119891The text was updated successfully, but these errors were encountered: