Torsten Rottmann <[EMAIL PROTECTED]> added the comment: OK. I've read the Python Reference Manual 7.6 "Function Definition". It "explains" why this happens.
BUT: Why can`t the compiler make a copy of the default object, if it's mutable (e.g. a list)? This can't be that difficult. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4098> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com