summaryrefslogtreecommitdiffstats
path: root/Parser/Python.asdl
diff options
context:
space:
mode:
authorEric V. Smith <ericvsmith@users.noreply.github.com>2019-05-08 20:28:48 (GMT)
committerGitHub <noreply@github.com>2019-05-08 20:28:48 (GMT)
commit9a4135e939bc223f592045a38e0f927ba170da32 (patch)
treede347c6f2df801dc98b36ab5084dada335741517 /Parser/Python.asdl
parent65d98d0f53f558d7c799098da0abf376068c15fd (diff)
downloadcpython-9a4135e939bc223f592045a38e0f927ba170da32.zip
cpython-9a4135e939bc223f592045a38e0f927ba170da32.tar.gz
cpython-9a4135e939bc223f592045a38e0f927ba170da32.tar.bz2
bpo-36817: Add f-string debugging using '='. (GH-13123)
If a "=" is specified a the end of an f-string expression, the f-string will evaluate to the text of the expression, followed by '=', followed by the repr of the value of the expression.
Diffstat (limited to 'Parser/Python.asdl')
-rw-r--r--Parser/Python.asdl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl
index 668d3c9..626fa4f 100644
--- a/Parser/Python.asdl
+++ b/Parser/Python.asdl
@@ -76,7 +76,7 @@ module Python
-- x < 4 < 3 and (x < 4) < 3
| Compare(expr left, cmpop* ops, expr* comparators)
| Call(expr func, expr* args, keyword* keywords)
- | FormattedValue(expr value, int? conversion, expr? format_spec)
+ | FormattedValue(expr value, int? conversion, expr? format_spec, string? expr_text)
| JoinedStr(expr* values)
| Constant(constant value, string? kind)