Keyword arguments - strange behaviour?

Fredrik Lundh fredrik at pythonware.com
Tue Dec 21 05:19:07 EST 2004


brian.bird at securetrading.com wrote:

> Can anyone explain the behaviour of python when running this script?

the language reference has the full story:

    http://www.python.org/doc/2.4/ref/function.html

    "Default parameter values are evaluated when the function
    definition is executed"

</F> 






More information about the Python-list mailing list