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

2005-10-14 Thread Paul Rubin
"Amir Michail" <[EMAIL PROTECTED]> writes: > But dosomestuff can get rid of its reference before it returns (perhaps > it has a lot more to do before it returns and so you would want to > garbage collect the parameter object as soon as possible). That would be so rare and weird that your best bet

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

2005-10-14 Thread Steven D'Aprano
On Fri, 14 Oct 2005 17:40:48 -0700, Amir Michail wrote: > 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) That's a horrible syntax. It would require Python to be completely re-designed to allow statements

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

2005-10-14 Thread Amir Michail
Paul Rubin wrote: > "Amir Michail" <[EMAIL PROTECTED]> 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 ge

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

2005-10-14 Thread Paul Rubin
"Amir Michail" <[EMAIL PROTECTED]> 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 fr

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

2005-10-14 Thread Amir Michail
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 -- http:/