Skip to content

bpo-1635741: Adapt _multibytecodec to multi-phase initialization - #24095

Merged
vstinner merged 17 commits into
python:masterfrom
erlend-aasland:multibytecodec-module-state
Jan 4, 2021
Merged

bpo-1635741: Adapt _multibytecodec to multi-phase initialization#24095
vstinner merged 17 commits into
python:masterfrom
erlend-aasland:multibytecodec-module-state

Conversation

@erlend-aasland

@erlend-aaslanderlend-aasland commented Jan 4, 2021

Copy link
Copy Markdown
Contributor
  • 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
Copy Markdown
ContributorAuthor

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

@shihai1991shihai1991 left a comment

Copy link
Copy Markdown
Member

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.

Comment threadMisc/NEWS.d/next/Library/2021-01-04-15-05-40.bpo-1635741.EOCfZY.rst Outdated
Comment threadModules/cjkcodecs/multibytecodec.c Outdated
Comment threadMisc/NEWS.d/next/Library/2021-01-04-15-05-40.bpo-1635741.EOCfZY.rst Outdated
Comment threadModules/cjkcodecs/multibytecodec.c Outdated
Comment threadModules/cjkcodecs/multibytecodec.c Outdated
Comment threadModules/cjkcodecs/multibytecodec.c Outdated
Comment threadModules/cjkcodecs/multibytecodec.c
@erlend-aasland
erlend-aaslandforce-pushed the multibytecodec-module-state branch from 90deaf4 to e8b3021CompareJanuary 4, 2021 20:55
@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

Thanks for your review, @vstinner. PTAL.

Comment threadModules/cjkcodecs/multibytecodec.c Outdated
Erlend Egeberg Aaslandand others added 2 commits January 4, 2021 22:08
Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner
vstinner merged commit 0b858cd into python:masterJan 4, 2021
@vstinner

Copy link
Copy Markdown
Member

Merged, thanks.

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

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