deleting a parameter's name as it is passed to a function

Paul Rubin http
Sat Oct 15 02:47:41 CEST 2005


"Amir  Michail" <amichail at gmail.com> writes:
> The idea is to garbage collect the object as soon as possible, and this
> may be sooner than when dosomestuff returns.

If it's a parameter to dosomestuff, then there's still a reference
until dosomestuff returns.  Simply getting rid of the name only frees
a dictionary entry.



More information about the Python-list mailing list