
7 Feb
2022
7 Feb
'22
7:57 p.m.
On Feb 7, 2022, at 1:55 AM, Chris Angelico rosuav@gmail.com wrote:
…
def spam(): bird = "Norwegian Blue" volts = 4e6 return "{volts}V insufficient to voom {bird}".format(**locals())
This is completely off topic, but: the better way to do this is with .format_map(locals()).
This public service announcement is part of my goal to increase knowledge of format_map().
Eric