summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-01-01 02:40:58 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2020-01-01 02:40:58 (GMT)
commit37143a8e3b2e9245d52f4ddebbdd1c6121c96884 (patch)
treee9bd9afc1f43130581d5e9b4d2116cc97351df54 /Python/ast.c
parentba82ee894cf0f6ec9e9f6a313c870ffd2db377e6 (diff)
downloadcpython-37143a8e3b2e9245d52f4ddebbdd1c6121c96884.zip
cpython-37143a8e3b2e9245d52f4ddebbdd1c6121c96884.tar.gz
cpython-37143a8e3b2e9245d52f4ddebbdd1c6121c96884.tar.bz2
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 e4e9b83..d5113f8 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;
}