4 ms·
The more efficient version of this is .format_map(locals())
by ericvsmith 6y ago
The more efficient version of this is .format_map(locals())
- dec0dedab0de 6y agoI 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.