[Python-ideas] Powerset
Steven D'Aprano
steve at pearwood.info
Mon Oct 15 19:02:52 EDT 2018
Hi Hasan, and welcome,
On Mon, Oct 15, 2018 at 11:15:47AM -0700, Hasan Diwan wrote:
> [if this isn't the correct spot, let me know and I'll gladly take it elsewhere]
> I have found myself needing powerset functionality several times
> recently to the point where I wondered if there's interest in making
> it part of the standard library.
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?
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.
--
Steve
More information about the Python-ideas
mailing list