[issue33551] The string prefixes u and f can't used together

2018-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The string prefix u is used exclusively for compatibility with Python 2. It helps writing code that works in Python 2 and Python 3. The string prefix f is not compatible with Python 2. If you use it, you no longer have reasons for using the string prefix u.

[issue33551] The string prefixes u and f can't used together

2018-05-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why would you want to do that? -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bu

[issue33551] The string prefixes u and f can't used together

2018-05-16 Thread Aifu LIU
New submission from Aifu LIU : The string prefixes u and f can't used together, for example: >>> age = 30 >>> s = uf'年龄:{age}' File "", line 1 s = uf'年龄:{age}' ^ SyntaxError: invalid syntax >>> -- components: Unicode messages: 316883 nosy: Aifu LIU, ezio.melotti