Default parameters
Rainer Deyke
rainerd at eldwood.com
Sat Dec 20 13:49:06 EST 2003
Carl Banks wrote:
> You ideas about what a function's purpose is are just not relevant to
> whether the time of evaluation is consistent.
I'm not talking about whether or not time of evaluation is consistent -
clearly either way is consistent so long as it is consistently used. I'm
saying that getting a fresh copy of default args is useless and dangerous
because it only helps with functions which shouldn't be written in the first
place.
--
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com
More information about the Python-list
mailing list