On 5/20/2019 10:32 AM, Batuhan Taskaya wrote:
> This strictly speaking isn't necessary. I could have added another
Constant node for "x=" and left FormattedValue alone. I didn't for three
reasons: it was expedient; it didn't require a lot of surgery to
f-string parsing, which the extra Constant
20.05.19 16:25, Eric V. Smith пише:
I added an optional "expr_text" field to the FormattedValue node, which
represents the text of the expression in a "debug" f-string expression.
So in f'{x=}', expr_text would be "x=".
This strictly speaking isn't necessary. I could have added another
> This strictly speaking isn't necessary. I could have added another
Constant node for "x=" and left FormattedValue alone. I didn't for three
reasons: it was expedient; it didn't require a lot of surgery to
f-string parsing, which the extra Constant node would require; and it
allowed the
I added an optional "expr_text" field to the FormattedValue node, which
represents the text of the expression in a "debug" f-string expression.
So in f'{x=}', expr_text would be "x=".
This strictly speaking isn't necessary. I could have added another
Constant node for "x=" and left