On Sat, Jan 9, 2021 at 10:21 AM Steven D'Aprano <[email protected]> wrote:
> Not every trivial combination of functions needs to be given a built-in
> or standard library solution. Especially not if doing so will break
> backwards compatibility.
>
> "I had three numbers in a tuple, and wanted half of twice the first
> number added to the difference of the remaining two. What do you think
> about making `len((a,b,c))` return `(2*a + abs(b - c))/2`?"
>
> *wink*

Certainly not! It should be the square root of the sum of the squares
of all the numbers!!

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/YN4DQ2ZJE75FX5SGUBI3M42ZNO6GDLP4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to