
27 May
2021
27 May
'21
4:46 p.m.
On 2021-05-27 21:02, Brendan Barnwell wrote:
On 2021-05-27 12:33, Chris Angelico wrote:
With statics, you could write it like this:
def merge_shortest(things): static len=len ...
Simple. Easy. Reliable. (And this usage would work with pretty much any of the defined semantics.) There's no more confusion.
You can already do that:
def merge_shortest(things): len=len ...
No, that raises an UnboundLocalError exception.