[Python-ideas] Support multiplication for sets

Jakob Bowyer jkbbwr at gmail.com
Fri Oct 7 12:46:34 CEST 2011


As far as I know and from asking my lecturer, multiplication only
produces Cartesian products.

On Fri, Oct 7, 2011 at 11:43 AM, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:

> On Fri, Oct 7, 2011 at 12:35, Paul Moore <p.f.moore at gmail.com> wrote:
> > I don't think an operator form is sufficiently valuable when the
> > functionality is available and clear enough already.
>
> I'm not sure; if set multiplication is highly unambiguous (i.e. the
> Cartesian product is the only logical outcome, and there is not some
> other common multiplication-like operation on sets), than it seems to
> me that supporting the multiplication operator for the Cartesian
> product of sets would be sensible.
>
> Cheers,
>
> Dirkjan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111007/13f4d807/attachment.html>


More information about the Python-ideas mailing list