On 7/3/06, Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On 7/3/06, Collin Winter <[EMAIL PROTECTED]> wrote:
> > Stupid question: why? What's the better spelling of operator.add?
>
> +

I reject your slippery slope argument that we'd have to remove
operator.add. Not that we'd be able to tell, but + is not callable. Or
would that change as well? (Actually the more I briefly consider
making in place operators the callables that perform the represented
operation, the more attractive it seems, if it doesn't blow the parser
out of the water.)

SyntaxError: invalid syntax
>>> reduce(+, [1,2,3,4])
  File "<stdin>", line 1
    reduce(+, [1,2,3,4])
            ^
SyntaxError: invalid syntax

Michael
-- 
Michael Urman  http://www.tortall.net/mu/blog
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to