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@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@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@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.