3 ms·
f-strings should have been the default right from the start, with a prefix (like r"") to turn it off. In that way it would be similar to bash. But I think that
by globular-toast 7y ago
f-strings should have been the default right from the start, with a prefix (like r"") to turn it off. In that way it would be similar to bash. But I think that ship has sailed. Like any mature language Python will have to live with some of the unfortunate decisions of the past. Thankfully Python is still far better than most languages in that regard.