Once-only evaluation of default parameter values function definitions
Fred Ma
fma at doe.carleton.ca
Tue Apr 13 16:49:36 EDT 2004
Brian, Sean,
Thanks for the clarification and example. I'll need a bit more
time to get my head around the example, but I'm pretty clear about
what's happening in the situation of default values for function
arguments, as well as the idiom to avoid sharing default values
across function calls.
Fred
--
Fred Ma
Dept. of Electronics, Carleton University
1125 Colonel By Drive, Ottawa, Ontario
Canada, K1S 5B6
More information about the Python-list
mailing list