-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-14935: Remove static state from the _csv module #23224
Conversation
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>
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_Spec Writer_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.
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.
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#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>
This merges code/ideas from gh-20974 and gh-16078, and uses the new
_PyType_GetModuleByDef
.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
https://bugs.python.org/issue14935