Skip to content

bpo-41036: Implement object_traverse() - #20983

Closed
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:object_traverse
Closed

vstinner wants to merge 1 commit into
python:masterfrom
vstinner:object_traverse

Conversation

@vstinner

@vstinner vstinner commented Jun 19, 2020 •

Copy link
Copy Markdown
Member

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

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.
@vstinner

Copy link
Copy Markdown
Member Author

PR rebased to get the macOS fix (to fix the macOS job).

@vstinner vstinner closed this Jan 19, 2021
@vstinner
vstinner deleted the object_traverse branch January 19, 2021 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants