On 5/07/20 7:33 am, Henk-Jaap Wagenaar wrote:
min(0, float('nan')) == 0 and same for max. I would hence expect clamp to behave similarly.

But min(float('nan'), 0) == nan.

I don't think you can conclude anything from either of
these about how clamp() *should* behave in the presence
of nans, since they're accidents of implementation.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/CZG7SMEUN4DM3IKH6CCWHRTSJSJ4WLPD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to