Sorry, something went wrong.
| if (PyModule_AddObject(module, "ref", (PyObject *) &_PyWeakref_RefType) < 0) { | ||
| Py_DECREF(&_PyWeakref_RefType); | ||
| return -1; | ||
| } |
There was a problem hiding this comment.
@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 a problem hiding this comment.
I will submit the PR for this :)
Sorry, something went wrong.
There was a problem hiding this comment.
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.
|
thanks, folks. |
Sorry, something went wrong.
|
I had to revert this change: #19128 Because it introduced a reference leak: https://bugs.python.org/issue40050 |
Sorry, something went wrong.
https://bugs.python.org/issue1635741