[Python-ideas] Implement `itertools.permutations.__getitem__` and `itertools.permutations.index`

Ram Rachum ram.rachum at gmail.com
Wed May 7 19:43:20 CEST 2014


I'm probably going to implement it in my python_toolbox package. I already
implemented 30% and it's really cool. It's at the point where I doubt that
I want it in the stdlib because I've gotten so much awesome functionality
into it and I'd hate to (a) have 80% of it stripped and (b) have the class
names changed to be non-Pythonic :)


On Wed, May 7, 2014 at 8:40 PM, Tal Einat <taleinat at gmail.com> wrote:

> On Wed, May 7, 2014 at 8:21 PM, Ram Rachum <ram.rachum at gmail.com> wrote:
> > Hi Tal,
> >
> > I'm using it for a project of my own (optimizing keyboard layout) but I
> > can't make the case that it's useful for the stdlib. I'd understand if it
> > would be omitted for not being enough of a common need.
>
> At the least, this (a function for getting a specific permutation by
> lexicographical-order index) could make a nice cookbook recipe.
>
> - Tal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140507/90494801/attachment.html>


More information about the Python-ideas mailing list