3 ms·
Julia uses a semicolon prefix in a tuple to denote this restructuring. I think that could fit into Python without breaking the whole ecosystem.
by data-ottawa 1y ago
Julia uses a semicolon prefix in a tuple to denote this restructuring. I think that could fit into Python without breaking the whole ecosystem.
- bobbylarrybobby 1y agoPython would probably just use the asterisk to mimic the syntax used to declare kw-only kwargs. def f(x, , y): ... f(foo, , y)