New GitHub issue #101408 from colesbury:<br>

<hr>

<pre>
The `PyObject_GC_Resize` implementation in the main branch doesn't check if the object has a preheader:

https://github.com/python/cpython/blob/0ef92d979311ba82d4c41b22ef38e12e1b08b13d/Modules/gcmodule.c#L2357-L2358

The only internal use I see is by `_PyTuple_Resize` which doesn't have a preheader, but the [`PyObject_GC_Resize`](https://docs.python.org/3/c-api/gcsupport.html#:~:text=TYPE%20*-,PyObject_GC_Resize,-(TYPE%2C ) function is publicly documented.
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/101408">View on GitHub</a>
<p>Labels: type-bug, 3.12</p>
<p>Assignee: </p>