]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101)
authorXuanteng Huang <44627253+xuantengh@users.noreply.github.com>
Wed, 30 Oct 2024 09:01:09 +0000 (17:01 +0800)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 09:01:09 +0000 (09:01 +0000)
commit35df4eb959b3923c08aaaeff728c5ed1706f31cf
tree0066d2a27b47aaa3fc3dde9debcfd9b553579565
parent2ab377a47c8290f8bf52c8ffb5d7fc4c45452611
gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101)
16 files changed:
Doc/library/inspect.rst
Doc/reference/datamodel.rst
Include/cpython/code.h
Include/internal/pycore_symtable.h
Lib/dis.py
Lib/inspect.py
Lib/test/test_code.py
Lib/test/test_compile.py
Lib/test/test_compiler_assemble.py
Lib/test/test_dis.py
Lib/test/test_inspect/test_inspect.py
Misc/NEWS.d/next/Core_and_Builtins/2024-10-29-10-37-39.gh-issue-126072.XLKlxv.rst [new file with mode: 0644]
Objects/funcobject.c
Python/codegen.c
Python/compile.c
Python/symtable.c