summaryrefslogtreecommitdiff
path: root/Python/ast.c
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-12-31 21:40:58 -0500
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2019-12-31 20:40:58 -0600
commit37143a8e3b2e9245d52f4ddebbdd1c6121c96884 (patch)
treee9bd9afc1f43130581d5e9b4d2116cc97351df54 /Python/ast.c
parentba82ee894cf0f6ec9e9f6a313c870ffd2db377e6 (diff)
downloadcpython-git-37143a8e3b2e9245d52f4ddebbdd1c6121c96884.tar.gz
bpo-39176: Improve error message for 'named assignment' (GH-17777)
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index e4e9b837d3..d5113f8e41 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1955,7 +1955,7 @@ ast_for_namedexpr(struct compiling *c, const node *n)
if (target->kind != Name_kind) {
const char *expr_name = get_expr_name(target);
if (expr_name != NULL) {
- ast_error(c, n, "cannot use named assignment with %s", expr_name);
+ ast_error(c, n, "cannot use assignment expressions with %s", expr_name);
}
return NULL;
}