Skip to content

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-aasland commented Jan 4, 2021

  • Establish module state
  • Convert types to heap types and add them to module state
  • Add multi-phase init support

https://bugs.python.org/issue1635741

@erlend-aasland
Copy link
ContributorAuthor

@corona10 or @shihai1991, would one of you mind reviewing this PR?

Copy link
Member

@shihai1991shihai1991 left a comment

Choose a reason for hiding this comment

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

LGTM. just nitpicks in here. And no refleaks when I run ./python -m test test_multibytecodec -R 3:3 -vv.

@erlend-aaslanderlend-aaslandforce-pushed the multibytecodec-module-state branch from 90deaf4 to e8b3021CompareJanuary 4, 2021 20:55
@erlend-aasland
Copy link
ContributorAuthor

Thanks for your review, @vstinner. PTAL.

Erlend Egeberg Aaslandand others added 2 commits January 4, 2021 22:08
Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinnervstinner merged commit 0b858cd into python:masterJan 4, 2021
@vstinner
Copy link
Member

Merged, thanks.

@erlend-aaslanderlend-aasland deleted the multibytecodec-module-state branch January 4, 2021 21:37
@erlend-aasland
Copy link
ContributorAuthor

Merged, thanks.

Great, thanks for a thorough review!

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
) Convert the _multibytecodec extension module (CJK codecs) to multi-phase initialization (PEP 489).
Sign up for freeto 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.

5 participants

@erlend-aasland@vstinner@shihai1991@the-knights-who-say-ni@bedevere-bot