News for hackers. Stuff that matters.
Re:Python's new t-strings by masklinn on Monday April 21, 2025 @02:15PM (#43754807)
> they really do want to allow either raw strings are a template string.

I’d consider that an invalid use case:

1. You can create a template string without placeholders.

2. Even if the caller does need to pass in a string (because they’re executing from a file, or t-strings don’t support e.g. facetting) then they can just… wrap the string in a template explicitly.

There are no comments on this comment yet.