Question About When Objects Are Destroyed (continued)

Jon Forrest nobozo at gmail.com
Fri Aug 4 19:47:49 EDT 2017


Perhaps the reason the variable isn't destroyed is
shown by the following (again, in the same session):

 >>> import sys
 >>> sys.getrefcount(1578505988392)
3

So, maybe it's not destroyed because there are still
references to it. But, what are these references?
Will the reference count ever go to zero?

Jon




More information about the Python-list mailing list