-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Symbol table for type parameter (PEP 695) raises AssertionError on get_type() #110045
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
Comments
AlexWaygood
added
topic-typing
3.12
bugs and security fixes
3.13
bugs and security fixes
labels
Sep 28, 2023
Same error on Windows 10 and main. |
terryjreedy
changed the title
Python 3.12: symbol table for type parameter (PEP 695) raises AssertionError on get_type()
Symbol table for type parameter (PEP 695) raises AssertionError on get_type()
Sep 29, 2023
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Sep 29, 2023
JelleZijlstra
added a commit
to JelleZijlstra/cpython
that referenced
this issue
Sep 29, 2023
JelleZijlstra
added a commit
that referenced
this issue
Sep 29, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 29, 2023
(cherry picked from commit 7dc2c50) Co-authored-by: Jelle Zijlstra <[email protected]>
Yhg1s
pushed a commit
that referenced
this issue
Sep 29, 2023
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
Tested with CPython 3.12.0rc3
The symbol table for type parameters (generic) seem to have a new type, but it appears that the
symtable
implementation was not updated accordingly. Also there is no_symtable.TYPE_*
constant for type code 6 (see _symtable).https://github.com/python/cpython/blob/3.12/Lib/symtable.py#L62-L75
https://github.com/python/cpython/blob/main/Lib/symtable.py#L62-L75
There are new block types introduced by PEP 695 https://github.com/python/cpython/blob/3.12/Include/internal/pycore_symtable.h#L13-L23
https://github.com/python/cpython/blob/3.12/Include/internal/pycore_symtable.h#L13-L23
Hope this can be fixed by the 3.12 GA release.
CPython versions tested on:
3.12.0rc3
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: