4 ms·
There's been some discussion on that[1], with some suggesting the introduction of syntax analogous to f-strings: foo(items, num=, kind=) # equivalent t
by messe 5y ago
There's been some discussion on that[1], with some suggesting the introduction of syntax analogous to f-strings:
foo(items, num=, kind=)
# equivalent to
foo(items, num=num, kind=kind)
But as far as I know there hasn't been a formal proposal (I could be wrong, and am happy to be corrected on this).
[1]: https://lwn.net/Articles/818129/ https://lwn.net/Articles/818129/
- hprotagonist 5y agothat looks nice! not essential, but nice. I like the similar 3.8+ f-string improvement: x=5 print(f”{x=}”)