Right now it is:
>>> ft'a' File "<python-input-3>", line 1 ft'a' ^^^ SyntaxError: invalid syntax
I propose:
>>> ft'a' File "<python-input-3>", line 1 ft'a' ^^^ SyntaxError: can't use both "f" and "t" prefixes for strings at the same time
cc @lysnikolaou
I am working on the issue :)
gh-133197: Improve error message for `ft""` and `bt""` cases (#133202)
More tersely, "f" and "t" prefixes are incompatible.
I can change the one I commited when working on new ones. I like your suggestion! Thanks!
pythongh-133197: Improve error message for incompatible string / byte…
gh-133197: Improve error message for incompatible string / bytes pref…
Activity
gh-133197: Improve error message for `ft""` and `bt""` cases (#133202)
terryjreedy commented on Apr 30, 2025
More tersely, "f" and "t" prefixes are incompatible.
sobolevn commented on Apr 30, 2025
I can change the one I commited when working on new ones. I like your suggestion! Thanks!
pythongh-133197: Improve error message for incompatible string / byte…
gh-133197: Improve error message for incompatible string / bytes pref…
pythongh-133197: Improve error message for incompatible string / byte…