Skip to content

Conversation

@mjp41
Copy link
Owner

@mjp41 mjp41 commented Jan 16, 2026


📚 Documentation preview 📚: https://cpython-previews--65.org.readthedocs.build/

mjp41 added 2 commits January 16, 2026 13:06
This adds a new slot to the type that can provide a custom traversal for handling immutable/freezing of the code.

Currently if this is not provided it falls back to tp_traverse.
This removes a special case from the code.
Copy link
Collaborator

@xFrednet xFrednet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition itself looks good, but it doesn't set the tp_reachable for most built-in types. Once that is done it should be good to go.

@mjp41
Copy link
Owner Author

mjp41 commented Jan 19, 2026

The addition itself looks good, but it doesn't set the tp_reachable for most built-in types. Once that is done it should be good to go.

Sounds good. I mostly wanted to get someone else's eyes on it, and then we can decide how broad a blast radius we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants