From 094c9c921cc889f1aac99bbcc26b70b19f8ef1d9 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Wed, 18 May 2016 08:44:29 +0300 Subject: Issue #23275: Allow () = iterable assignment syntax Documentation updates by Martin Panter. --- Python/ast.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Python') diff --git a/Python/ast.c b/Python/ast.c index ad771cf702..1efd0b7daa 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -990,13 +990,8 @@ set_context(struct compiling *c, expr_ty e, expr_context_ty ctx, const node *n) s = e->v.List.elts; break; case Tuple_kind: - if (asdl_seq_LEN(e->v.Tuple.elts)) { - e->v.Tuple.ctx = ctx; - s = e->v.Tuple.elts; - } - else { - expr_name = "()"; - } + e->v.Tuple.ctx = ctx; + s = e->v.Tuple.elts; break; case Lambda_kind: expr_name = "lambda"; -- cgit v1.2.1