[Python-ideas] Add "equal" builtin function

אלעזר elazarg at gmail.com
Thu Oct 6 13:20:36 EDT 2016


The name might be a little confusing; it can be understood as comparing two
sequences, so passing two sequences may seem reasonable to a reviewer.

Elazar

בתאריך יום ה׳, 6 באוק' 2016, 20:15, מאת Filipp Bakanov ‏<filipp at bakanov.su>:

> 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/
>
>
> _______________________________________________
> 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/022ec654/attachment.html>


More information about the Python-ideas mailing list