New submission from TheComet :
It would be nice to have a clamp() builtin in addition to min() and max() so
one can type e.g. "clamp(value, 2, 5)" instead of having to type
"min(max(value, 5), 2)".
--
components: Library (Lib)
messages: 341358
nosy: TheComet
priority: normal
severity: normal
status: open
title: Add clamp() function to builtins
type: enhancement
___
Python tracker
<https://bugs.python.org/issue36788>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com