bpo-1635741: Port _weakref extension module to multiphase initialization(PEP 489) by shihai1991 · Pull Request #19084 · python/cpython
Choose a reason for 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() ;-)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will submit the PR for this :)
Choose a reason for 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?