Serhiy Storchaka added the comment: > f'\\N{AMPERSAND}': reading a local variable looks like a typo or a security > vulnerability, rather than a nice feature.
This can look as a typo, but how would you write this if this is not a typo? f'\\N{AMPERSAND}' is legitimate syntax, and it would be weird to interpret this expression in any other way than as '\\' + 'N' + format(AMPERSAND). > What is the issue with having to write "\\{10}" to get "\\10" string? It's > less error prone. There is no issue with f'\\{10}'. There is an issue with f'\{10}'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29104> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com