On 06/07/2020 01:59, Greg Ewing wrote:

If one of the bounds is missing, you don't need clamp(), you
can use min() or max().

Not true.
It would be true if you knew a specific one of the bounds was always missing, but you might want to call it repeatedly, sometimes with either bound (or both) missing, sometimes not.
Rob Cliffe
_______________________________________________
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/BV4BDBADHBAGUQB4CNN4MIV2VJMBDLZS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to