bpo-40077: Convert _csv module to use PyType_FromSpec #20974
Conversation
corona10
left a comment
There was a problem hiding this comment.
@vstinner
Please take a look
I locally tested with _csv module on subinterpreter and module test
And there was no leak.
(But import csv with subinterpreter still has leaks but not related to this PR)
Sorry, something went wrong.
|
FYI, macOS CI issue is not related to this PR |
Sorry, something went wrong.
corona10
left a comment
There was a problem hiding this comment.
Thanks all of your reviews are applied and no memory leak was found!
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
I'm not sure that it's possible to convert static types to heap types if they have Py_TPFLAGS_BASETYPE, since currently there is no way to retrieve the module from such type.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
|
I understand that this PR (if merged) would fix https://bugs.python.org/issue14935 |
Sorry, something went wrong.
|
The issue is now closed via #23224. |
Sorry, something went wrong.
https://bugs.python.org/issue40077