list.clear() missing?!?

Felipe Almeida Lessa felipe.lessa at gmail.com
Fri Apr 14 01:37:25 EDT 2006


Em Sex, 2006-04-14 às 09:17 +0400, Sergei Organov escreveu:
> I, as a newcomer, don't have much trouble understanding the binding vs
> the assignment by themselves. What does somewhat confuse is dual role of
> the "=" operator, -- sometimes it means "bind" and other times it means
> "assign", right? For me it seems that the language would be less
> error-prone and easier to grok if these two operations had different
> names/syntax (thinking about lisp "let" vs "set"), though it seems to be
> too drastic change even for Python3000.

The "=" operator *always* binds.

-- 
Felipe.




More information about the Python-list mailing list