zip or marry etc
Bjorn Pettersen
bjorn at roguewave.com
Tue Jul 18 19:07:45 EDT 2000
Robin Becker wrote:
>
> I suppose there must be something desperately wrong with using the
> __mul__ for sequences to indicate the set pairwise product. I would
> certainly be for
>
> x,y in A*B rather than x,y in zip(A,B) or marry(A,B), but since * is the
> obvious operator it must be that someone else has reserved it.
if A is of a class defining __mul__ (or B is of a class defining
__rmul__) you'll have problems.
How about A @ B... <wink>
running-and-hiding'ly y'rs
-- bjorn
More information about the Python-list
mailing list