Number of references to Python-6 test objects
Import sys
Class T:
Pass
T = T
Num = sys.getrefcount (t)
The number-1 measured by print (num) # is the actual number of objects, where the value of num is 2, and the actual number of objects referenced is 1.