Tin mới
PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable.
Return a borrowed reference to the referenced object from a weak reference, ref. If the referent is no longer live, returns Py_None.
This function is called by the tp_dealloc handler to clear weak references.