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

Grégoire Weber report at bugs.python.org
Wed Dec 10 15:56:00 CET 2008


Grégoire Weber <gregoire.weber at gmail.com> added the comment:

I'd like to second rhr. The current behaviour is is not according to
Pythons design principle of least surprise. After 5+ years of Python
experience as Zope and Plone developer I recently fell into that trap.

-----

Just for information (Discussion thread on a Pre-PEP started Feb 14, 2007:

  http://mail.python.org/pipermail/python-3000/2007-February/005704.html

The BDFL statement to this:

  http://mail.python.org/pipermail/python-3000/2007-February/005715.html

----------
nosy: +gregweb

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


More information about the Python-bugs-list mailing list