Optional parameter object re-used when instantiating multiple objects

Aaron Brady castironpi at gmail.com
Thu Nov 20 01:14:30 CET 2008


On Nov 19, 12:05 pm, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
>
>         I wouldn't expect a language like Ada to somehow re-evaluate a
> default argument on each call; why would I expect Python to do such?

Lots of people do.

If you had a menu in a browser interface that had the items, say,
'Stop' and 'Reload', what would you expect to happen if you clicked on
them?



More information about the Python-list mailing list