HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by ericvsmith | Hacker News Reader
Parent
Full thread
ericvsmith
·
The more efficient version of this is .format_map(locals())
View on HN
dec0dedab0de
·
I didnt know format_map existed, but it looks like it is not in python 2 so it wouldn't have helped in that use case. Still, thanks for pointing that out. I love learning about new minor conveniences in Python.
Reply on news.ycombinator.com