[Python-ideas] Re: A better math.factorial

2021-09-18 Thread Chris Angelico
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

[Python-ideas] Re: A better math.factorial

2021-09-18 Thread Steven D'Aprano
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

[Python-ideas] Re: A better math.factorial

2021-09-18 Thread David Mertz, Ph.D.
> 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

[Python-ideas] Re: New feature to revert 'barry_as_FLUFL' future import

2021-09-18 Thread Jeremiah Vivian
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