Martin Panter added the comment:
Another version of that AST that is better for my digestion:
f'a={a}'
Module(body=[Expr(
value=JoinedStr(values=[
Str(s='a='),
FormattedValue(
value=Name(id='a', ctx=Load()),
conversion=0,
format_spec=None,
),
]),
)])
I have been reading over the test cases, and left a bunch of suggestions for
more edge cases etc. Some of them might reflect that I haven’t completely
learnt how the inner Python expression syntax, outer string escaping syntax,
{{curly bracket}} escaping, automatic concatenation, etc, are all meant to fit
together.
----------
nosy: +martin.panter
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24965>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com