[Python-Dev] a flattening operator?

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 19 06:45:23 CEST 2006


Josiah Carlson wrote:

> One major problem with this is that except for function calls, * is the
> multiplication operator, which operates on two arguments.  *foo is an
> operation on a single argument, and without parenthesis, would be
> ambiguously parsed.

No, it wouldn't. There's no problem in giving an operator
different unary and binary meanings; '-' already does
that.

--
Greg


More information about the Python-Dev mailing list