GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — bpo-40077: Convert _jsonmodule to use PyType_FromSpec. by corona10 · Pull Request #19177 · python/cpython Conversation
|
| encoder_clear(self); | ||
| Py_TYPE(self)->tp_free(self); | ||
| encoder_clear((PyEncoderObject *)self); | ||
| tp->tp_free(self); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The current code is just fine, no? I don't see the value of tp. It seems like it comes from a previous change that you reverted.
| tp->tp_free(self); | |
| Py_TYPE(self)->tp_free(self); |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@vstinner
Py_DECREF(tp);is needed if not test is leaked.
This is why I declared tp ;)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
test_json leaked [114, 114, 114] references, sum=342
test_json failed in 35.6 sec
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@vstinner Please take a look |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @corona10, this change was interesting. I learnt a few things :-) I merged your PR, but I completed the commit message to elaborate on changes that you wrote. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I mentioned the removed assertions in bpo-40137 that I just created: TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.