Skip to content

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

@ericvsmith

Description

@ericvsmith

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions