◐ Shell
clean mode source ↗

bpo-41036: Implement object_traverse() by vstinner · Pull Request #20983 · python/cpython

Provide a default tp_traverse implementation for the base object
type for heap types which have no tp_traverse function. The
traverse function visits the type if the type is a heap type.

Update subtype_traverse(): don't call object_traverse() to avoid
visiting the type twice.

https://bugs.python.org/issue41036