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

Amir Michail amichail at gmail.com
Sat Oct 15 02:40:48 CEST 2005


Hi,

I think it would be useful to delete a name of a parameter object as
the object is passed to a function:

dosomestuff(del a)

instead of

dosomestuff(a)
del a

The idea is to garbage collect the object as soon as possible, and this
may be sooner than when dosomestuff returns.

Amir




More information about the Python-list mailing list