Bug report
Bug description:
Found by OSS Fuzz in #491105000.
>>> class i: [__classdict__ for x in y]
SystemError: _PyST_GetScope(name='__classdict__') failed: unknown scope in unit <module> (93973616364240); symbols: {'i': 4098}; locals: {}; globals: {}
>>> class i: [__conditional_annotations__ for x in y]
SystemError: _PyST_GetScope(name='__conditional_annotations__') failed: unknown scope in unit <module> (94200568314576); symbols: {'i': 4098}; locals: {}; globals: {}
We need to expand the fix for __class__ (fedbf77), I will open a PR shortly.
CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug report
Bug description:
Found by OSS Fuzz in #491105000.
We need to expand the fix for
__class__(fedbf77), I will open a PR shortly.CPython versions tested on:
3.14, CPython main branch
Operating systems tested on:
No response
Linked PRs
__classdict__&__conditional_annotations__in class-scope inlined comprehensions #145702__classdict__&__conditional_annotations__in class-scope inlined comprehensions (GH-145702) #145710__classdict__&__conditional_annotations__in class-scope inlined comprehensions (GH-145702) #145711