[Python-Dev] a flattening operator?

Josiah Carlson jcarlson at uci.edu
Wed Apr 19 08:52:19 CEST 2006


Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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.

I stand corrected.  Though the look of 'print *e' bothers me.

 - Josiah



More information about the Python-Dev mailing list