Skip to content

[Python] PEP 750 Template Strings (t-string) #312

@zufuliu

Description

@zufuliu

https://peps.python.org/pep-0750/
https://discuss.python.org/t/pep750-template-strings-new-updates/71594

A simple implementation is just treated it as PEP 701 f-string (issue #150) with new prefixes (t, tr, rt, case insensitive).

https://peps.python.org/pep-0750/#relationship-with-other-peps

Python introduced f-strings in Python 3.6 with PEP 498. The grammar was then formalized in PEP 701 which also lifted some restrictions. This PEP is based on PEP 701.

cc @jpe

Metadata

Metadata

Assignees

No one assigned

    Labels

    committedIssue fixed in repository but not in releasepythonCaused by the Python lexer

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions