-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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 <[email protected]>
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
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jun 19, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jun 21, 2024
mrahtz
pushed a commit
to mrahtz/cpython
that referenced
this issue
Jun 30, 2024
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 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 <[email protected]>
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
PR python#119321 added a comment about the magic number bump but did not actually apply the new magic number.
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jul 21, 2024
JelleZijlstra
added a commit
that referenced
this issue
Jul 23, 2024
Co-authored-by: Alex Waygood <[email protected]>
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jul 24, 2024
Noticed some issues while writing documentation for this method.
This was referenced Jul 24, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jul 24, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jul 24, 2024
nohlson
pushed a commit
to nohlson/cpython
that referenced
this issue
Jul 24, 2024
…n#119891) Co-authored-by: Alex Waygood <[email protected]>
nohlson
pushed a commit
to nohlson/cpython
that referenced
this issue
Jul 24, 2024
…n#119891) Co-authored-by: Alex Waygood <[email protected]>
JelleZijlstra
added a commit
that referenced
this issue
Jul 27, 2024
JelleZijlstra
added a commit
that referenced
this issue
Jul 27, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jul 27, 2024
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Jul 27, 2024
hugovk
added a commit
that referenced
this issue
Jul 28, 2024
Co-authored-by: Hugo van Kemenade <[email protected]>
Thanks, I think I meant to say "in Python 3.14". Edited. |
JelleZijlstra
added a commit
that referenced
this issue
Aug 11, 2024
Noticed some issues while writing documentation for this method.
JelleZijlstra
added a commit
that referenced
this issue
Aug 11, 2024
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
Noticed some issues while writing documentation for this method.
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
JelleZijlstra
added a commit
that referenced
this issue
Sep 11, 2024
Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Carol Willing <[email protected]>
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 Python 3.14. 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)from __future__ import annotations
; an introduction to annotationlib; an update to Larry's annotations HOWTOannotationlib
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 #119891 (comment)annotationlib
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: