[New-bugs-announce] [issue37050] Remove expr_text from ast node FormattedValue

Eric V. Smith report at bugs.python.org
Sat May 25 16:57:14 EDT 2019


New submission from Eric V. Smith <eric at trueblade.com>:

I added the expr_text optional field to the FormattedValue node in order to implement the '=' feature of f-strings (see issue 36817).

However, the expr_text field isn't strictly needed. Instead, the same feature could be added with another Constant string node child of the JoinedStr node.

I'm going to remove expr_text and use another Constant in order to remove this change to the 3.8 ast nodes. I have a patch mostly worked out, I'll have it ready in the next day or two. I want to get this in to 3.8 beta 1, because otherwise we're stuck with the expr_text implementation.

----------
assignee: eric.smith
components: Interpreter Core
messages: 343511
nosy: eric.smith, lukasz.langa
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Remove expr_text from ast node FormattedValue
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37050>
_______________________________________


More information about the New-bugs-announce mailing list