Overwriting / reassigning instance / garbage collection?
From: Ken Godee (ken_at_perfect-image.com)
Date: 10/30/03
- Next message: Evan Simpson: "Re: replacement of rexec?"
- Previous message: the mamoot: "serial port access"
- Next in thread: Peter Hansen: "Re: Overwriting / reassigning instance / garbage collection?"
- Reply: Peter Hansen: "Re: Overwriting / reassigning instance / garbage collection?"
- Reply: Werner Schiendl: "Re: Overwriting / reassigning instance / garbage collection?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?????
- Next message: Evan Simpson: "Re: replacement of rexec?"
- Previous message: the mamoot: "serial port access"
- Next in thread: Peter Hansen: "Re: Overwriting / reassigning instance / garbage collection?"
- Reply: Peter Hansen: "Re: Overwriting / reassigning instance / garbage collection?"
- Reply: Werner Schiendl: "Re: Overwriting / reassigning instance / garbage collection?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]