gh-119127: Fix _functools.Placeholder singleton (#124601)
* The module state now stores a strong reference to the Placeholder singleton. * Use a regular dealloc function. * Add Py_TPFLAGS_HAVE_GC flag and a traverse function to help the GC to collect the type when a _functools extension is unloaded.
V
Victor Stinner committed
257a20a81764fcc17bcde9c0cec57fbc53a4adc7
Parent: abe5f79
Committed by GitHub <noreply@github.com>
on 9/26/2024, 2:50:38 PM