New submission from TheComet <alex.mur...@gmx.ch>:

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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36788>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to