summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2025-01-17 15:42:27 (GMT)
committerGitHub <noreply@github.com>2025-01-17 15:42:27 (GMT)
commitd66c08aa757f221c0e8893300edac105dfcde7e8 (patch)
treea5b1afb129b5782fe20057cad446789a88756d14 /Lib/pydoc.py
parent767c89ba7c5a70626df6e75eb56b546bf911b997 (diff)
downloadcpython-d66c08aa757f221c0e8893300edac105dfcde7e8.zip
cpython-d66c08aa757f221c0e8893300edac105dfcde7e8.tar.gz
cpython-d66c08aa757f221c0e8893300edac105dfcde7e8.tar.bz2
gh-128923: Use zero to indicate unassigned unique id (#128925)
In the free threading build, the per thread reference counting uses a unique id for some objects to index into the local reference count table. Use 0 instead of -1 to indicate that the id is not assigned. This avoids bugs where zero-initialized heap type objects look like they have a unique id assigned.
Diffstat (limited to 'Lib/pydoc.py')
0 files changed, 0 insertions, 0 deletions