Message250529
Thanks! Here are a few more cases I came across with the existing implementation:
>>> f"{'a\\'b'}"
File "<stdin>", line 1
SyntaxError: missing '}' in format string expression
I believe this is valid and should produce "a'b".
>>> f"{x!s!s}"
File "<stdin>", line 1
SyntaxError: single '}' encountered in format string
Could use a better error message.
>>> x = 3
>>> f"{x!s{y}}"
'3y}'
Not sure how this happened. |
|
Date |
User |
Action |
Args |
2015-09-12 20:34:25 | JelleZijlstra | set | recipients:
+ JelleZijlstra, barry, eric.smith, python-dev, martin.panter, yselivanov |
2015-09-12 20:34:25 | JelleZijlstra | set | messageid: <1442090065.29.0.178963018563.issue24965@psf.upfronthosting.co.za> |
2015-09-12 20:34:25 | JelleZijlstra | link | issue24965 messages |
2015-09-12 20:34:25 | JelleZijlstra | create | |
|