[Python-ideas] Add "equal" builtin function

Filipp Bakanov filipp at bakanov.su
Thu Oct 6 13:09:07 EDT 2016


Seems like itertools recipes already have "all_equal" function. What do you
think about moving it from recipes to itertools? I suggest a C
implementation with optimisations for builtin collections.

2016-10-06 18:42 GMT+03:00 Chris Angelico <rosuav at gmail.com>:

> On Fri, Oct 7, 2016 at 2:23 AM, Steven D'Aprano <steve at pearwood.info>
> wrote:
> > +0.3 to adding it the standard library.
> >
> > +0.1 to adding it to built-ins
> >
> > -0.1 on adding it to built-ins under the name "equal", as that will
> > confuse too many people.
>
> I'll go further: -0.5 on adding to built-ins. +0.5 on adding it to
> itertools or the itertools recipes.
>
> ChrisA
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161006/f6492ada/attachment.html>


More information about the Python-ideas mailing list