New old PEP news 📰
PEP 671 "Syntax for late-bound function argument defaults" from 2021, originally proposed for Python 3.11, has been dusted off for Python 3.16.
"Function parameters can have default values which are calculated during function definition and saved. This proposal introduces a new form of argument default, defined by an expression to be evaluated at function call time."
def bisect_right(a, x, lo=0, hi=>len(a), *, key=None):
https://discuss.python.org/t/pep-671-syntax-for-late-bound-function-argument-defaults/110297