How is this advantageous over str.format?
How is this advantageous over str.format?
Posted Jan 22, 2025 20:14 UTC (Wed) by siddh (subscriber, #169663)Parent article: A revamped Python string-formatting proposal
From a cursory reading, it seems to me the only thing it has over str.format is that it detects the variable from the name, so code becomes shorter.
We anyways need to create a function to process the template, which is just equivalent to processing a format string but without the explicit argument passing (which can be just a dict).
What am I missing?
