On Sun, Sep 19, 2021 at 1:44 PM Steven D'Aprano wrote:
>
> On Sat, Sep 18, 2021 at 03:50:00PM -0700, Christopher Barker wrote:
>
> > Folks are not surprised by:
> >
> > >> 2 * 3 == [2] * 3
> >
> > False
> >
> > Because 2 is not only a different type than [2] but because they are
> > different
On Sat, Sep 18, 2021 at 03:50:00PM -0700, Christopher Barker wrote:
> Folks are not surprised by:
>
> >> 2 * 3 == [2] * 3
>
> False
>
> Because 2 is not only a different type than [2] but because they are
> different values as well.
What counts as a value? In some programming languages, 2.0
> Except that it would still be the case that
> >
> > >>> factorial(23) == factorial(23.0)
> > False
>
> Sure, but if simple type dispatch (generic functions) was built into the
> language, people would be perfectly comfortable with the idea that two
> functions with the same name but accepting
If "barry_as_FLUFL" is a joke, I see no reason why there shouldn't be another
joke disabling it.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org