Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ericvsmith opened this issue Jan 2, 2019 · 2 comments
Open

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

ericvsmith opened this issue Jan 2, 2019 · 2 comments

Comments

@ericvsmith
Copy link

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.

@ulope
Copy link
Owner

ulope commented Jan 2, 2019

Thanks for the pointer.

I really plan to get v2 out this year 🤞

@xmo-odoo
Copy link

That seems to correspond to / overlap with #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants