In article 
<[email protected]>,
 rusi <[email protected]> wrote:

> > > def f(a, L=[]):
> > >     L.append(a)
> > >     return L

> Every language has gotchas. This is one of python's.

One of our pre-interview screening questions for Python programmers at 
Songza is about this.  I haven't been keeping careful statistics, but 
I'd guess only about 50% of the candidates get this right.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to