3 ms·
There's a fantastic "more explicit" version of it: str.format. This really is just an implicit version of str.format(). I just don't understand why such a signi
by scrollaway 11y ago
There's a fantastic "more explicit" version of it: str.format. This really is just an implicit version of str.format(). I just don't understand why such a significant syntax change would make it into python when it deviates so much from their usual mantra.
- mixmastamyk 11y agoGuido is not a purity robot, and has been looking for a way to have this feature since perl and python were duking it out in the early nineties. Practicality beats purity. It isn't a large syntax change, string prefixes have existed since the beginning.
- sametmax 11y agoYes. "Practicality beats purity". This part of the zen of Python, too many people forget about it. People forget that Python is also about readability, and ease of code exploration is the shell. Fstring is a feature to make that even better.