FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-92123: Store _elementtree state in type contexts by erlend-aasland · Pull Request #101190 · python/cpython · GitHub

/ cpython Public

GH-92123: Store _elementtree state in type contexts - #101190

Merged
erlend-aasland merged 2 commits into
python:mainfrom
erlend-aasland:etree/state-as-type-context-member
Jan 23, 2023
Merged

GH-92123: Store _elementtree state in type contexts#101190
erlend-aasland merged 2 commits into
python:mainfrom
erlend-aasland:etree/state-as-type-context-member

Conversation

erlend-aasland commented Jan 20, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

This comment was marked as outdated.

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

Copy link
Copy Markdown
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

kumaraditya303 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

erlend-aasland merged commit 984387f into python:main Jan 23, 2023
erlend-aasland deleted the etree/state-as-type-context-member branch January 23, 2023 12:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL