gc.garbage from paramiko

Robey Pointer robey at lag.net
Fri Feb 10 07:28:48 GMT 2006


On 9 Feb 2006, at 7:47, Neil Schemenauer wrote:

> John A Meinel <john at arbash-meinel.com> wrote:
>> You could move the close() into the member variable. And then
>> main_obj.close() just calls the main_obj._secret_sauce.close().

But the problem is actually closing without having close() called  
explicitly.


> Even if you very careful to ensure that your code does not create a
> cycle involving your object, the user may create one.
> [...]
> Using this design makes life easier for you and protects the user
> (assuming they don't mess around with private attributes; in that
> case they get what they deserve).

Nobody yet has explained how a user could turn my DAG into a cycle  
without mucking around in private attributes, so I'm not convinced  
it's possible.  (See yesterday's posts.)

robey





More information about the bazaar mailing list