diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-05-18 08:44:29 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-05-18 08:44:29 +0300 |
commit | 82255f4c09e6acea48a5bb378eafb03cc805581e (patch) | |
tree | 3522cfaf3a90095802d8e783e1fc9af081a7c055 /Python/ast.c | |
parent | 9495837d2f6d165c1e668d5fd65c95c421345203 (diff) | |
download | cpython-82255f4c09e6acea48a5bb378eafb03cc805581e.tar.gz |
Issue #23275: Allow () = iterable assignment syntax
Documentation updates by Martin Panter.
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 9 |
1 files changed, 2 insertions, 7 deletions
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"; |