reading docs is helpful -- during today's short look at #Python docs, I discovered that as of 3.14 functools.partial() may take placeholders: this makes it possible to pre-fill any positional argument with a call to partial(); without Placeholder, only the chosen number of leading positional arguments can be pre-filled.

#Python #TIL

https://docs.python.org/3/library/functools.html#functools.Placeholder

functools — Higher-order functions and operations on callable objects

Source code: Lib/functools.py The functools module is for higher-order functions: functions that act on or return other functions. In general, any callable object can be treated as a function for t...

Python documentation
@km this is the basic purpose of partial()
@zopyx yes, until _now_ it could pre-fill _leading_ arguments, but otherwise i reached out to lambda for flexibility