Is it allowed to use function results as default arguments ?

Terry Reedy tjreedy at udel.edu
Tue Jul 29 03:03:46 EDT 2008


To answer the subject line:
param=<any expression that can be evaluated when the function is defined>
will assign the result of the expression as the default argument object 
for the parameter.

tjr




More information about the Python-list mailing list