Default parameters

Paul Rubin http
Thu Dec 18 09:38:04 EST 2003


Carl Banks <imbosol at aerojockey.invalid> writes:
> It seems that most people who haven't thought about time of evaluation
> tend to expect it to be evaluated when the function is called; I know
> I would expect this.  (I think I even made the mistake.)

The principle of least astonishment then suggests that Python made
a suboptical choice.




More information about the Python-list mailing list