Message250544
Is this behavior intentional?
>>> str = len
>>> x = 'foo'
>>> f'{x!s}'
'3'
>>> '{!s}'.format(x)
'foo'
Or similarly:
>>> import builtins
>>> del builtins.repr
>>> f'{x!r}'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'repr' is not defined |
|
Date |
User |
Action |
Args |
2015-09-13 00:15:37 | JelleZijlstra | set | recipients:
+ JelleZijlstra, barry, eric.smith, python-dev, martin.panter, yselivanov |
2015-09-13 00:15:37 | JelleZijlstra | set | messageid: <1442103337.03.0.215942560131.issue24965@psf.upfronthosting.co.za> |
2015-09-13 00:15:36 | JelleZijlstra | link | issue24965 messages |
2015-09-13 00:15:35 | JelleZijlstra | create | |
|