Should Python raise a warning for mutable default arguments?
benjamin.kaplan at case.edu
Sat Aug 23 00:38:00 CEST 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...
More information about the Python-list