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-1635741: Port _weakref extension module to multiphase initialization(PEP 489) by shihai1991 · Pull Request #19084 · python/cpython Conversation
|
| if (PyModule_AddObject(module, "ref", (PyObject *) &_PyWeakref_RefType) < 0) { | ||
| Py_DECREF(&_PyWeakref_RefType); | ||
| return -1; | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@corona10: Ah, now I see that we would benefit of a helper function calling PyType_Ready() + _PyType_Name() + PyModule_AddObject() ;-)
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.
I will submit the PR for this :)
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.
I am looking forword this feature;)
In this case, _PyWeakref_RefType have been added much times(it is means this type have much objects name). it can use this feature too?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
thanks, folks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tialization (PEP 489) (GH-19084)" (#19128) bpo-1635741, bpo-40050: This reverts commit 8334f30.
|
I had to revert this change: #19128 Because it introduced a reference leak: https://bugs.python.org/issue40050 |
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.