pyformat.info icon indicating copy to clipboard operation
pyformat.info copied to clipboard

Use "format_map(data)" instead of "format(**data)"

Open ericvsmith opened this issue 6 years ago • 2 comments

format_map(data) was added specifically to improve the performance and behavior of format(**data). I realize this isn't a feature in 2.7, but if you're adding f-strings they you should also mention format_map. I can't remember when it was added, but it might be as far back as 3.2. So all supported versions of 3.x support it.

ericvsmith avatar Jan 02 '19 13:01 ericvsmith

Thanks for the pointer.

I really plan to get v2 out this year 🤞

ulope avatar Jan 02 '19 13:01 ulope

That seems to correspond to / overlap with #44

xmo-odoo avatar Feb 27 '19 09:02 xmo-odoo