apardon at forel.vub.ac.be
Fri Jan 14 03:12:29 EST 2005
Op 2005-01-13, hanz schreef <hanzspam at yahoo.com.au>:
> Antoon Pardon wrote:
>> So if I have a call with an expression that takes more than
>> one line, I should assign the expression to a variable and
>> use the variable in the call?
> Yes, that's sometimes a good practice and can clarify
> the call.
>> But wait if I do that, people will tell me how bad that it
>> is, because it will keep a reference to the value which
>> will prevent the garbage collector from harvesting this
> Nobody will tell you that it's bad.
Sorry, someone already did. If I recall correctly it
was Alex Martelli.
More information about the Python-list