Comment on PEP-0238

Guido van Rossum guido at digicool.com
Fri Jul 6 17:01:39 EDT 2001


>     Guido> Picking div() means that we can still turn that into a keyword
>     Guido> later (the keyword would be both a unary and a binary operator).
> 
> What would a unary "div" operator mean?
> 
> Skip

When div is a function, div(x, y) is a function call.  When div is a
keyword, we could still support div(x, y) as a unary operator with a
tuple argument.  Then you could also write

    arg = (x, y)
    print div arg

But maybe that's too cute.

--Guido van Rossum (home page: http://www.python.org/~guido/)




More information about the Python-list mailing list