zip or marry etc
Robin Becker
robin at jessikat.fsnet.co.uk
Wed Jul 19 10:23:03 EDT 2000
In article <397517C6.93911CF0 at prescod.net>, Paul Prescod
<paul at prescod.net> writes
>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.
>
>We aren't looking for the set pairwise product (which I am taking as a
>synonym for cross-product). We're looking just to pair up elements.
>
no you need the pairwise concatenate product of the sets considered as
vectors mumble handwave handwave
--
Robin Becker
More information about the Python-list
mailing list