479
480
**Default parameter values are evaluated when the function definition is
480
481
executed.** This means that the expression is evaluated once, when the function
482
483
is especially important to understand when a default parameter is a mutable
483
484
object, such as a list or a dictionary: if the function modifies the object
484
485
(e.g. by appending an item to a list), the default value is in effect modified.