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 -- [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/BV4BDBADHBAGUQB4CNN4MIV2VJMBDLZS/
Code of Conduct: http://python.org/psf/codeofconduct/