[issue4619] Invalid Behaviour When a Default Argument is a Mutable Object

David W. Lambert report at bugs.python.org
Wed Dec 10 16:14:44 CET 2008


David W. Lambert <lambertdw at corning.com> added the comment:

Mutable function arguments and class variables are python's mechanisms
to provide data persistence at these scope levels.  Quite opposite of
design flaw, they are necessary!  Write a decorator to change the
behavior   where you'd like an empty mutable defaults if you're not
happy with other methods already described.

----------
nosy: +LambertDW

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4619>
_______________________________________


More information about the Python-bugs-list mailing list