[Python-ideas] Powerset

Hasan Diwan hasan.diwan at gmail.com
Mon Oct 15 19:45:39 EDT 2018

> This is certainly the right place to discuss this, but you shouldn't
> assume that everyone reading will know what powerset functionality you
> are referring to.
> Is it the same as the recipe in the itertools documentation?

Yes pretty much.
> https://docs.python.org/3/library/itertools.html#itertools-recipes
> Can you make a case for why it is important and useful enough to be put
> into the std lib? Every new function increases the burden on both the
> Python developers maintaining the stdlib, and new users learning to use
> the language. So you need to make a case for why the benefit outweighs
> the costs.

The best case I've come up with is one of obviousness. When looking
for the powerset implementation in the cpython source, grepping for
itertools.chain is not an obvious, at least to me, vector for a
solution. -- H
OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1
If you wish to request my time, please do so using bit.ly/hd1AppointmentRequest.
Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.

Sent from my mobile device
Envoye de mon portable

More information about the Python-ideas mailing list