Message251250
"""
For example, this code:
f'abc{expr1:spec1}{expr2!r:spec2}def{expr3:!s}ghi'
Might be be evaluated as:
'abc' + format(expr1, spec1) + format(repr(expr2)) + 'def' + format(str(expr3)) + 'ghi'
"""
format(repr(expr2)) should be format(repr(expr2), spec2)
"""
>>> f'x={x'
File "<stdin>", line 1
SyntaxError: missing '}' in format string expression
"""
Actually implemented exception message is:
SyntaxError: f-string: expecting '}'
"""
>>> f'x={!x}'
File "<fstring>", line 1
!x
^
SyntaxError: invalid syntax
"""
Actually implemented exception message is:
SyntaxError: f-string: invalid conversion character: expected 's', 'r', or 'a' |
|
Date |
User |
Action |
Args |
2015-09-21 19:57:01 | Arfrever | set | recipients:
+ Arfrever, eric.smith |
2015-09-21 19:57:01 | Arfrever | set | messageid: <1442865421.08.0.715266193748.issue25206@psf.upfronthosting.co.za> |
2015-09-21 19:57:01 | Arfrever | link | issue25206 messages |
2015-09-21 19:57:00 | Arfrever | create | |
|