[Python-ideas] Powerset

Pål Grønås Drange paal.drange at gmail.com
Tue Oct 16 04:36:53 EDT 2018


> [...] when one searches for a powerset function, the
> logical place to look isn't itertools, it's the set class. -- H

That's a rather object-oriented view, I think.

So you look for the permutation function in the list class?

I prefer these functions gathered in one place, and I find that itertools
does the job.

I do however agree that there could be a powerset function there for
convenience, but only +0.

- Pål GD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181016/741961c9/attachment.html>


More information about the Python-ideas mailing list