[Python-ideas] Extremely weird itertools.permutations

Bruce Leban bruce at leapyear.org
Tue Oct 15 22:34:46 CEST 2013


On Mon, Oct 14, 2013 at 6:39 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> "It isn't worth the hassle" is the answer to a whole lot of "Why not
> X?" questions in software development :)
>

Sometimes it's not worth the hassle on either side. If this is added to the
standard library and I write code that uses it, my code won't be backwards
compatible with older versions of Python. So I'll either have to not
support older Python versions or use an alternative implementation. If this
is on pypi then that's not an issue. Not everything useful should be in the
standard library.

If I had come across a need for this, I'd have just used
unique_everseen(permuations(...)) until performance became an issue.

--- Bruce
I'm hiring: http://www.cadencemd.com/info/jobs
Latest blog post: Alice's Puzzle Page http://www.vroospeak.com
Learn how hackers think: http://j.mp/gruyere-security
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131015/ffbdad49/attachment.html>


More information about the Python-ideas mailing list