|
|
|
|
|
by GeorgeTirebiter
1506 days ago
|
|
Indeed, if "{value} is bad" can be automatically f-stringed by an external program automatically --- then why can't Python do this automatically -- so we can get rid of the f-string type as a required explicit declaration? After all, we don't specifically add a type to a number like 42 or 3.14159 --- those are implicitly 'int' and 'float' types. I would use such a feature, as I always use f-strings when formatting. |
|
Because it would break existing strings containing braces, such as those used with `str.format`, or string.Template, or literal Jinja templates, ...