Should Python raise a warning for mutable default arguments?

Benjamin Kaplan benjamin.kaplan at
Sat Aug 23 00:38:00 CEST 2008

On Fri, Aug 22, 2008 at 5:39 PM, Emile van Sebille <emile at> wrote:

> Dan wrote:
>> I'd suggest that at the end of the tutorial, when people have a better
>> general idea of how Python works, there would be a Python Gotchas section.
> Hmmm, OK -- mutable defaults, integer division, name mangling...
> I'd think decimal precision is more a general problem than a python
> problem, but still one that throws newbies...
> Any other ideas for gotcha's (as opposed to faqs)?

Mixing tabs and spaces.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list