gc.garbage from paramiko

Martin Pool mbp at sourcefrog.net
Tue Feb 7 21:40:38 GMT 2006


On  8 Feb 2006, Robert Collins <robertc at robertcollins.net> wrote:
> On Wed, 2006-02-08 at 08:17 +1100, Martin Pool wrote:
> > The traceback contains an object representing the stack, which contains
> > a copy of all the local variables.   This will cause additional
> > references to objects, and might cause them to be retained for longer
> > than you would expect.   I'm not sure how it would cause a cycle passing
> > through the file-like object, unless for some reason it saved the
> > exception info within itself?
> 
> By copy of the local variables, I presume you mean a copy of the local
> names dictionary ;). No 'user' objects get copied.

Or maybe another reference to the local names dictionary for each stack
frame?  At any rate objects referenced on the stack are "more reachable"
by being referenced from the trackback object.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060208/b8a0f93b/attachment.pgp 


More information about the bazaar mailing list