diff options
author | Xuanteng Huang <44627253+xuantengh@users.noreply.github.com> | 2024-10-30 09:01:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 09:01:09 (GMT) |
commit | 35df4eb959b3923c08aaaeff728c5ed1706f31cf (patch) | |
tree | 0066d2a27b47aaa3fc3dde9debcfd9b553579565 /Include/internal/pycore_symtable.h | |
parent | 2ab377a47c8290f8bf52c8ffb5d7fc4c45452611 (diff) | |
download | cpython-35df4eb959b3923c08aaaeff728c5ed1706f31cf.zip cpython-35df4eb959b3923c08aaaeff728c5ed1706f31cf.tar.gz cpython-35df4eb959b3923c08aaaeff728c5ed1706f31cf.tar.bz2 |
gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101)
Diffstat (limited to 'Include/internal/pycore_symtable.h')
-rw-r--r-- | Include/internal/pycore_symtable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_symtable.h b/Include/internal/pycore_symtable.h index 7e3d45a..91dac76 100644 --- a/Include/internal/pycore_symtable.h +++ b/Include/internal/pycore_symtable.h @@ -123,6 +123,7 @@ typedef struct _symtable_entry { unsigned ste_comp_iter_target : 1; /* true if visiting comprehension target */ unsigned ste_can_see_class_scope : 1; /* true if this block can see names bound in an enclosing class scope */ + unsigned ste_has_docstring : 1; /* true if docstring present */ int ste_comp_iter_expr; /* non-zero if visiting a comprehension range expression */ _Py_SourceLocation ste_loc; /* source location of block */ struct _symtable_entry *ste_annotation_block; /* symbol table entry for this entry's annotations */ |