Overwriting / reassigning instance / garbage collection?
Ken Godee
ken at perfect-image.com
Thu Oct 30 11:34:04 EST 2003
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?????
More information about the Python-list
mailing list