aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/clinic/Python-tokenize.c.h
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2025-03-05 09:04:49 -0500
committerGitHub <noreply@github.com>2025-03-05 15:04:49 +0100
commit2905690a91bf72cdf0fb919b5193849bb67732e2 (patch)
tree37fe0620fe7cb82ed55cfe4fe71556874b6d9039 /Python/clinic/Python-tokenize.c.h
parent78d50e91ff31bc7fd0ac877cf59ee083e94d0915 (diff)
downloadcpython-2905690a91bf72cdf0fb919b5193849bb67732e2.tar.gz
cpython-2905690a91bf72cdf0fb919b5193849bb67732e2.zip
gh-130851: Don't crash when deduping unusual code constants (#130853)
The bytecode compiler only generates a few different types of constants, like str, int, tuple, slices, etc. Users can construct code objects with various unusual constants, including ones that are not hashable or not even constant. The free threaded build previously crashed with a fatal error when confronted with these constants. Instead, treat distinct objects of otherwise unhandled types as not equal for the purposes of deduplication.
Diffstat (limited to 'Python/clinic/Python-tokenize.c.h')
0 files changed, 0 insertions, 0 deletions