On Sat, Aug 5, 2017 at 9:47 AM, Jon Forrest <nob...@gmail.com> wrote:
> 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?

That's the reference count for the integer object. Nothing to do with
the original. Again, don't stress about exactly when objects get
disposed of; it doesn't matter.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to