Remembered arguments to a function

David Goodger goodger at python.org
Tue Mar 9 11:31:05 EST 2004


wruuqr ewfjbc wrote:
> Should I have expected the behavior of this function? 
> Is this a bug?  Is it wise to exploit this behavior?

That's a FAQ.  See <http://www.python.org/doc/faq/general.html>,
question 4.21 "Why are default values shared between objects?".

-- David Goodger





More information about the Python-list mailing list