Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
bpo-14935: Remove static state from the _csv module#23224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uses code from:python#16078Co-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>
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
vstinner left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM. IMO the code is cleaner with your changes, thanks.
I just added a minor coding style remark, feel free to ignore it ;-)
Modules/_csv.c Outdated
| PyType_SpecWriter_Type_spec= { | ||
| "_csv.writer", | ||
| sizeof(WriterObj), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
maybe use ".m_xxx = xxx" syntax here, as you did for the other spec below. Same remark for Reader_Type_spec.
vstinner left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM, thanks.
shihai1991 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I have no other comments, so LGTM.
Uses code from:python#16078Co-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>
Uh oh!
There was an error while loading.Please reload this page.
This merges code/ideas fromgh-20974 andgh-16078, and uses the new
_PyType_GetModuleByDef.Co-authored-by: Marcel Plchgmarcel.plch@gmail.com
Co-authored-by: Eddie Elizondoeduardo.elizondorueda@gmail.com
Co-authored-by: Hai Shishihai1992@gmail.com
https://bugs.python.org/issue14935