Tin mới
Python’s support for detecting and collecting garbage which involves circular references requires support from object types which are “containers” for other objects which may also be containers. Types which do not store
The object’s memory must be deallocated using PyObject_GC_Del().
Perform a full garbage collection, if the garbage collector is enabled. (Note that gc.collect() runs it unconditionally.)