Overwriting / reassigning instance / garbage collection?

From: Ken Godee (ken_at_perfect-image.com)
Date: 10/30/03


Date: Thu, 30 Oct 2003 09:34:04 -0700
To: python-list@python.org

I'm using the python Queue module, but since I can not
find anyway to clear the Queue, I thought I would try
to reassign ie......

q1 = Queue.Queue()
q1.put('test1')
q1.put('test2')
q1.qsize()
2
q1 = Queue.Queue()
q1.qsize()
0

q1 now has a new address, so I'm
assuming the old q1 instance now has a
reference count of zero and python will garbage collect it?????