Re:Python's new t-strings
by davepeck on Monday April 21, 2025 @07:28PM
(#43757595)
My point was that library authors will need to consider this carefully. If you're writing a library where injection attacks matter, then -- long term -- you almost certainly do not want a single method that accepts `Union[str, Template]`. You probably either want to avoid accepting `str` entirely, or perhaps provide two separate methods. Some period of deprecation seems inevitable.
[ Parent
| on HN ]
There are no comments on this comment yet.