Skip to content

Conversation

@eduardo-elizondo
Copy link
Contributor

@eduardo-elizondoeduardo-elizondo commented Sep 13, 2019

Add all the changes needed to make _csv compatible with PEP384 as well as removing all static state from it

https://bugs.python.org/issue34533

@eduardo-elizondo
Copy link
ContributorAuthor

Also, #8977 was trying to address this first but I couldn't manage to get a branch back from that so I just created a new PR

@encukou
Copy link
Member

The PoC/WIP implementation of PEP 573 should do this plus also remove reliance PyState_FindModule.
I'll concentrate on that PEP rather than on reviewing this.

@eduardo-elizondo
Copy link
ContributorAuthor

Yup! PEP573 should be the long term solution for getting the module state in C Extensions. We can always go back and update this module once the PEP is finalized. On that note, I have a couple of comments/questions that I've been meaning to post in capi-sig about PEP573. I should prioritize that as well :-)

For now though, this should be ready to be merged as is (pending any in-line comments reviewers might have).

@eduardo-elizondoeduardo-elizondo changed the title bpo-34533: Make _csv compatible with PEP384bpo-34533: Remove all static state from _csv moduleSep 23, 2019
@ericsnowcurrently
Copy link
Member

Sorry, for the delay, @eduardo-elizondo. I plan on taking a look next Friday.

encukou added a commit to encukou/cpython that referenced this pull request May 19, 2020
See: python#16078 This is slightly nicer. Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com>
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jun 4, 2020
See: python#16078 This is slightly nicer. Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com>
encukou added a commit to encukou/cpython that referenced this pull request Oct 20, 2020
Uses code from: python#16078 Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com> Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> Co-authored-by: Hai Shi <shihai1992@gmail.com>
@encukou
Copy link
Member

Here is my attempt: #22838

encukou added a commit to encukou/cpython that referenced this pull request Nov 10, 2020
Uses code from: python#16078 Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com> Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> Co-authored-by: Hai Shi <shihai1992@gmail.com>
encukou added a commit that referenced this pull request Dec 15, 2020
Uses code from: #16078 Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com> Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> Co-authored-by: Hai Shi <shihai1992@gmail.com>
@encukou
Copy link
Member

#23224, which includes this code, is now merged. Thank you for working on this!

@encukouencukou closed this Dec 15, 2020
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Uses code from: python#16078 Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com> Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> Co-authored-by: Hai Shi <shihai1992@gmail.com>
Sign up for freeto 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.

5 participants

@eduardo-elizondo@encukou@ericsnowcurrently@the-knights-who-say-ni@bedevere-bot