Skip to content

[feat]If t-string can have a template method to combine the string #139977

@DannyWuzhiheng

Description

@DannyWuzhiheng

Feature or enhancement

Proposal:

I think it would be even better if t-string had a method (like s=template.combine()) to return the combined result.
(maybe had been mentioned by someone, or already implemented.)

Actually,It's not a method to change the template into a string but return a string like the f-string , I dont't know if there is a method or a fuction to implementation this,but I can only use the join() method of string to do this now

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions