Should Python raise a warning for mutable default arguments?

Benjamin Kaplan benjamin.kaplan at case.edu
Fri Aug 22 18:38:00 EDT 2008


On Fri, Aug 22, 2008 at 5:39 PM, Emile van Sebille <emile at fenx.com> 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: <http://mail.python.org/pipermail/python-list/attachments/20080822/32874a01/attachment-0001.html>


More information about the Python-list mailing list