[New-bugs-announce] [issue28827] f-strings: format spec should not accept unicode escapes
Yury Selivanov
report at bugs.python.org
Mon Nov 28 19:31:37 EST 2016
New submission from Yury Selivanov:
Right now, Python 3.6b4 happily accepts the following:
>>> f'{10:02\N{LATIN CAPITAL LETTER X}}'
'0A'
>>> f'{10:02X}'
'0A'
I think that the first line should not be accepted (as we now don't accept escaped open curly brace).
At least this should be documented in the PEP as a thing that shouldn't be relied upon, i.e. something that might not be supported in the future versions.
----------
components: Interpreter Core
messages: 281924
nosy: eric.smith, gvanrossum, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: f-strings: format spec should not accept unicode escapes
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28827>
_______________________________________
More information about the New-bugs-announce
mailing list