[issue4181] Invalid Behavior When a Default Argument is a Dictionary.

2008-10-22 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: The behavior is correct, expected and well documented. http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm -- nosy: +christian.heimes resolution: -> invalid status: open -> closed ___

[issue4181] Invalid Behavior When a Default Argument is a Dictionary.

2008-10-22 Thread Pasha
New submission from Pasha <[EMAIL PROTECTED]>: Whenever the default argument to a function is a dictionary, and the function is called twice, then the function "remembers" the changes to the dictionary. This means that any time that a default argument is set to a dictionary, a list or any other