gc.garbage from paramiko
Jan Hudec
bulb at ucw.cz
Sat Feb 11 12:00:30 GMT 2006
On Fri, Feb 10, 2006 at 09:55:39 -0800, Robey Pointer wrote:
>
> On 10 Feb 2006, at 1:25, Jan Hudec wrote:
>
> >I have just briefly looked at the code (development head) and indeed
> >some of the __del__ methods don't need to be there.
> >
> >For example SFTP_Client.__del__ - it only calls self.sock.close(), but
> >self.sock.__del__ will do that as well and python will call that
> >anyway.
>
> That's another useless one, thanks. The one we're talking about on
> paramiko that's problematic is SFTPFile, if you want to help out more
> (trying not to spam bazaar-ng too much).
Um, yes, I see. It's tricky there. The buffers need to be flushed at some
point. And the SFTP_File.__del__ seems best place to do it.
It would be really interesting to know how the SFTP_File becomes part of
a cycle, or at least what cycle that is. Perhaps than something could be done
about it.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- 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/20060211/34ee39ac/attachment.pgp
More information about the bazaar
mailing list