It's actually one of the most powerful enhancements one can make to a programming language
It's actually one of the most powerful enhancements one can make to a programming language
Posted Jan 28, 2025 22:32 UTC (Tue) by LtWorf (subscriber, #124958)In reply to: It's actually one of the most powerful enhancements one can make to a programming language by NYKevin
Parent article: A revamped Python string-formatting proposal
I don't think your example is great either. If you make a function that reject strings, then a "SELECT name FROM names;" will fail because it's a string. Remember that fstrings do not exist at runtime so you have no way of knowing if it's an fstring or just a regular string with no parameters.
