In article <[EMAIL PROTECTED]>,
Bruno Desthuilliers  <[EMAIL PROTECTED]> wrote:
>
>FWIW, it's IMHO a real wart - given Python's pretention at readability - 
>that augmented assignement has been implemented that way for lists.

This was debated extensively when augmented assignment was created, and
it was decided that practicality beat purity.  It's just too convenient
to be able to write

L += ['foo']

without rebinding L.
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

"All problems in computer science can be solved by another level of     
indirection."  --Butler Lampson
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to