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 <rep...@bugs.python.org> <http://bugs.python.org/issue28827> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com