This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients barry, eric.smith, martin.panter, python-dev, yselivanov
Date 2015-09-11.12:09:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441973342.5.0.648186635741.issue24965@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-11 12:09:02martin.pantersetrecipients: + martin.panter, barry, eric.smith, python-dev, yselivanov
2015-09-11 12:09:02martin.pantersetmessageid: <1441973342.5.0.648186635741.issue24965@psf.upfronthosting.co.za>
2015-09-11 12:09:02martin.panterlinkissue24965 messages
2015-09-11 12:09:02martin.pantercreate