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

Ram Rachum ram.rachum at gmail.com
Mon May 5 15:17:16 CEST 2014


I suggest implementing:

 - `itertools.permutations.__getitem__`, for getting a permutation by its 
index number, and possibly also slicing, and 
 - `itertools.permutations.index` for getting the index number of a given 
permutation. 

What do you think? 


Thanks,
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140505/7ea6424b/attachment.html>


More information about the Python-ideas mailing list