Skip to content

gh-137855: Optimise import time for textwrap#131956

Draft
AA-Turner wants to merge 2 commits intopython:mainfrom
AA-Turner:opt-tw
Draft

gh-137855: Optimise import time for textwrap#131956
AA-Turner wants to merge 2 commits intopython:mainfrom
AA-Turner:opt-tw

Conversation

@AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Mar 31, 2025

This uses self-overwriting descriptors to implement compiled class-level patterns. An unorthodox approach, but I think cleaner than using is None checks everywhere. If this looks reasonable, I'll add NEWS etc.

A

Loading
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