Logan Jones <loganasherjo...@gmail.com> 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 problem. 
 
One way to solve this is to add a flag to the unicode_repr function to 
determine whether or not we need to allow triple quotes in the output of the 
repr. By default this will be false and will use backslashes, but the 
ast_unparse will use true for this.

----------
nosy: +loganasherjones

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue28002>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to