[Python-ideas] Extremely weird itertools.permutations

Neil Girdhar mistersheik at gmail.com
Sat Oct 12 09:17:43 CEST 2013


I'm sorry, but I can't find a reference supporting the statement that the
current permutations function is consistent with the mathematical
definition.  Perhaps you would like to find a reference? A quick search
yielded the book "the Combinatorics of Permutations":
http://books.google.ca/books?id=Op-nF-mBR7YC&lpg=PP1   Please look in the
chapter "Permutation of multisets".

Best,

Neil


On Sat, Oct 12, 2013 at 2:34 AM, Steven D'Aprano <steve at pearwood.info>wrote:

> On Fri, Oct 11, 2013 at 10:55:06PM -0400, Neil Girdhar wrote:
> > I honestly think that Python should stick to the mathematical definition
> of
> > permutations rather than some kind of consensus of the tiny minority of
> > people here.
>
> So do I. And that is exactly what itertools.permutations already does.
>
>
>
> --
> Steven
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "python-ideas" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-ideas/dDttJfkyu2k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-ideas+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131012/aa038cdb/attachment-0001.html>


More information about the Python-ideas mailing list