]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132775: Add _PyCode_ReturnsOnlyNone() (gh-132981)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 29 Apr 2025 02:12:52 +0000 (20:12 -0600)
committerGitHub <noreply@github.com>
Tue, 29 Apr 2025 02:12:52 +0000 (20:12 -0600)
commit96a7fb93a8e31eae368b9efee945f6959355e8ba
tree48528047d90971178c503d4da7badc8bbf28457d
parent75cbb8d89e7e92ccaba5c615c72459f241dca8b1
gh-132775: Add _PyCode_ReturnsOnlyNone() (gh-132981)

The function indicates whether or not the function has a return statement.

This is used by a later change related treating some functions like scripts.
Include/internal/pycore_code.h
Include/internal/pycore_opcode_utils.h
Lib/test/test_code.py
Modules/_testinternalcapi.c
Objects/codeobject.c
Python/flowgraph.c