summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2018-07-15 16:11:18 -0700
committerGuido van Rossum <guido@python.org>2018-07-15 17:00:11 -0700
commit78612bbeeedfbb7389aad3ffbf53365fb754b8f7 (patch)
tree7e737f33f5fb66274b50cdd88f84d0f6adbc936a
parent0f7536868223c0ea8a8326ea276d01aba851560f (diff)
downloadcpython-git-78612bbeeedfbb7389aad3ffbf53365fb754b8f7.tar.gz
Dummy compilation for AssExpr (evaluate value, ignore target)
-rw-r--r--Python/compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 3528670ef6..26c0c6b6a6 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -4442,6 +4442,9 @@ compiler_visit_expr(struct compiler *c, expr_ty e)
/* Updating the column offset is always harmless. */
c->u->u_col_offset = e->col_offset;
switch (e->kind) {
+ case AssExpr_kind:
+ VISIT(c, expr, e->v.AssExpr.value);
+ break;
case BoolOp_kind:
return compiler_boolop(c, e);
case BinOp_kind: