[Python-ideas] PEP 671: Syntax for late-bound function argument defaults

2021-10-25 Thread Mike Miller
On 2021-10-23 17:13, Chris Angelico wrote: def bisect_right(a, x, lo=0, hi=>len(a), *, key=None): Sounds like deferred execution could be useful, but I wanted to complain about the example above. I realize it is "just an example" but if I saw this in code, the first thing I'd do is

[Python-ideas] PEP 671: Syntax for late-bound function argument defaults

2021-10-23 Thread Chris Angelico
Incorporates comments from the thread we just had. Is anyone interested in coauthoring this with me? Anyone who has strong interest in seeing this happen - whether you've been around the Python lists for years, or you're new and interested in getting involved for the first time, or anywhere in