Skip to content

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Jan 20, 2023

@erlend-aasland

This comment was marked as outdated.

@erlend-aasland erlend-aasland force-pushed the etree/state-as-type-context-member branch from b1127be to b2698e2 Compare January 21, 2023 11:32
@erlend-aasland erlend-aasland force-pushed the etree/state-as-type-context-member branch from 007ccb5 to 4f0f2ff Compare January 22, 2023 11:43
@erlend-aasland
Copy link
Contributor Author

How about this: we store state in the type context for the TreeBuilder and XMLParser. The state pointer should be valid throughout the lifetime of the heap type, since each heap type has a reference to its module. After landing this, I'll rebase #101189 onto main.

cc. @kumaraditya303, @arhadthedev

Copy link
Contributor

@kumaraditya303 kumaraditya303 left a comment

Choose a reason for hiding this comment

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

LGTM

@erlend-aasland erlend-aasland merged commit 984387f into python:main Jan 23, 2023
@erlend-aasland erlend-aasland deleted the etree/state-as-type-context-member branch January 23, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants