Most viewed recipes tagged "product"http://code.activestate.com/recipes/tags/product/views/2010-04-12T19:06:22-07:00ActiveState Code RecipesSet product (Python)
2010-04-12T19:06:22-07:00Paul Ghttp://code.activestate.com/recipes/users/4173653/http://code.activestate.com/recipes/577190-set-product/
<p style="color: grey">
Python
recipe 577190
by <a href="/recipes/users/4173653/">Paul G</a>
(<a href="/recipes/tags/binary/">binary</a>, <a href="/recipes/tags/multiply/">multiply</a>, <a href="/recipes/tags/product/">product</a>, <a href="/recipes/tags/set/">set</a>).
</p>
<p>This recipe provides a subclass of set which implements __mul__ and __pow__ to support the computation of set products. When multiplying two sets together, a new set is produced with elements which are the inter-set pairs.</p>