[Python-ideas] Support multiplication for sets

Jakob Bowyer jkbbwr at gmail.com
Fri Oct 7 22:54:00 CEST 2011


Well it was fun watching the process that is python-ideas and the shooting
down in flames that happens here. Can someone give me some advice about what
to think about/do for the next time that an idea comes to mind?

On Fri, Oct 7, 2011 at 7:13 PM, Paul Moore <p.f.moore at gmail.com> wrote:

> On 7 October 2011 18:15, Stephen J. Turnbull <turnbull at sk.tsukuba.ac.jp>
> wrote:
> > Paul Moore writes:
> >
> >  > So your multiplication isn't commutative (the types of the elements in
> >  > the 2 expressions above are different).
> >
> > No, set multiplication is not going to be commutative: {'a'} X {1} is
> > quite different from {1} X {'a'}.  The problem you're pointing out is
> > much worse: the obvious implementation of Cartesian product isn't even
> > associative.
>
> Bah. For all my claims of having a mathematical background (OK, so it
> was 30 years ago :-)) I can't even remember the difference between
> associativity and commutativity.
>
> I'm going for a lie down now... :-)
> Paul.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111007/8ca8e535/attachment.html>


More information about the Python-ideas mailing list