It is possible to create a new formatter class by subclassing string.Formatter class and then to use it like myformatter.format("{foo:customformat}", foo=foo). It's not super-convenient though, and...
1 answer
·
posted 2y ago
by luser
· edited
2y ago
by Alexei