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

Explicitly state that Template.__str__() is not implemented #22

Closed
davepeck opened this issue Oct 22, 2024 · 0 comments
Closed

Explicitly state that Template.__str__() is not implemented #22

davepeck opened this issue Oct 22, 2024 · 0 comments
Assignees

Comments

@davepeck
Copy link
Owner

davepeck commented Oct 22, 2024

The intent of t-strings is that they are essentially always paired with a call to a function that processes them in some way.

We do not want any default behavior to convert them into strings; the only natural such behavior would be the equivalent of f-string (implemented as f() in our PEP examples) but part of the motivation for t-strings is to get away from their default behavior in cases where they're risky (sql injection, xss, etc.)

@davepeck davepeck self-assigned this Oct 22, 2024
@davepeck davepeck converted this from a draft issue Oct 22, 2024
@koxudaxi koxudaxi self-assigned this Nov 7, 2024
@davepeck davepeck moved this from Todo to Done in PEP 750 Remaining Work Nov 12, 2024
@davepeck davepeck closed this as completed by moving to Done in PEP 750 Remaining Work Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants