News for hackers. Stuff that matters.
Re:Python's new t-strings by hackrmn on Monday April 21, 2025 @12:47PM (#43753934)
I suppose lack of overlap in the "interface surface" (attributes, including callables) between `str` and `Template` should nip the kind of issue in the bud -- being passed a `Template` and needing to actually "instantiate" it -- accessing `strings` and `values` attributes on the passed object, will likely fail at runtime when attempted on a string someone passed instead (e.g. confusing a `t`-string with an `f`-string)?

There are no comments on this comment yet.