[issue28002] Some f-strings do not round trip through Tools/parser/test_unparse.py

2020-01-08 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue28002] Some f-strings do not round trip through Tools/parser/test_unparse.py

2019-05-06 Thread Logan Jones
Logan Jones added the comment: After speaking with Lukasz about this, it seems like the unparser is using the normal unicode repr to determine what should be returned. The default unicode repr will escape quotes if necessary. This is not allowed for f-strings and is the root cause of the pro

[issue28002] Some f-strings do not round trip through Tools/parser/test_unparse.py

2019-05-06 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The issue is also present in Astor: Python 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import ast >>> tree = ast.parse(""" ... f'''{"'"}''' ... "

[issue28002] Some f-strings do not round trip through Tools/parser/test_unparse.py

2019-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is the same problem with annotations. >>> from __future__ import annotations >>> def f() -> X[f'''{"'"}''']: pass ... >>> print(f.__annotations__['return']) X[f'{"\'"}'] You can look at https://github.com/berkerpeksag/astor. Maybe this problem is so

[issue28002] Some f-strings do not round trip through Tools/parser/test_unparse.py

2019-05-06 Thread Cheryl Sabella
Change by Cheryl Sabella : -- assignee: -> eric.smith versions: +Python 3.7, Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Pyth

[issue28002] Some f-strings do not round trip through Tools/parser/test_unparse.py

2016-09-07 Thread Eric V. Smith
Changes by Eric V. Smith : -- title: f-strings do not round trip through Tools/parser/test_unparse.py -> Some f-strings do not round trip through Tools/parser/test_unparse.py ___ Python tracker ___