gh-145701: Fix `__classdict__` & `__conditional_annotations__` in cla… · python/cpython@63eaaf9 · GitHub
Skip to content

Commit 63eaaf9

Browse files
gh-145701: Fix __classdict__ & __conditional_annotations__ in class-scope inlined comprehensions (GH-145702)
1 parent d6c1763 commit 63eaaf9

3 files changed

Lines changed: 38 additions & 3 deletions

File tree

Lib/test/test_listcomps.py

Lines changed: 12 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix :exc:`SystemError` when ``__classdict__`` or
2+
``__conditional_annotations__`` is in a class-scope inlined comprehension.
3+
Found by OSS Fuzz in :oss-fuzz:`491105000`.

Python/symtable.c

Lines changed: 23 additions & 3 deletions

0 commit comments

Comments
 (0)