In <[EMAIL PROTECTED]>, Nicholas
Parsons wrote:

> Just from my computer science background when I see pop(), I think of a
> stack data structure.

Then question your presumptions.  There are also many people thinking
`list` must be something with nodes and pointers when they see the
interface and usage of Python lists.

> But then again, there are other examples of ambiguity in the python
> language such as allowing operators like '+' to be overloaded.  Why not
> just have a "add()" method like Java?

Why does this remove ambiguity?  I even would expect different behaviour
from both.  I expect the ``+`` operator to return either an immutable or
entirely new object, while `add()` can be something on containers that
mutates the object.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to