-
-
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 and PEP 749 #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
JelleZijlstra
added a commit
that referenced
this issue
Jun 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 #119209format
argument toinspect.get_annotations
gh-119180: Addannotationlib
module to support PEP 649 #119891inspect.AnnotationsFormat
should be a "global enum". Is that desirable? TBD. https://github.com/python/cpython/pull/119361/files#r1614753031)annotationlib
module to support PEP 649 #119891inspect
. (If it can't be removed, get rid of the awkward dance we do fortyping.Protocol
to importinspect.getattr_static
lazily.)annotationlib
module to support PEP 649 #119891annotationlib
module to support PEP 649 #119891pep649-typevar
branch 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
annotationlib
module to support PEP 649 #119891The text was updated successfully, but these errors were encountered: