Dot-comma, anyone? (Re: zip or marry etc)

Bjorn Pettersen bjorn at roguewave.com
Thu Jul 20 12:09:29 EDT 2000


Greg Ewing wrote:
> 
> Paul Prescod wrote:
> >
> > We're looking just to pair up elements.
> 
> In that case, obviously the solution is to combine this
> thread with the one on new operator symbols, and define
> an elementwise tuple-creation operator
> 
>    .,

I think this would/should be the obvious consequence of adding
elementwise operators, I also think it's a wonderful argument for not
adding them...

  for i,j in [1,2,3].+[4,5,6].,[7,8,9].*[10,11,12]:
    print 'what was the precedence of elementwise operators again?'

-- bjorn




More information about the Python-list mailing list