commit | 094c9c921cc889f1aac99bbcc26b70b19f8ef1d9 | [log] [tgz] |
---|---|---|
author | Berker Peksag <berker.peksag@gmail.com> | Wed May 18 08:44:29 2016 +0300 |
committer | Berker Peksag <berker.peksag@gmail.com> | Wed May 18 08:44:29 2016 +0300 |
tree | b1b277a2de09a9d534a9bebc1d5b563b7dc54258 | |
parent | 93d22ecc7c7e2d3413bb21e0264a293f7884caee [diff] [blame] |
Issue #23275: Allow () = iterable assignment syntax Documentation updates by Martin Panter.
diff --git a/Python/ast.c b/Python/ast.c index ad771cf..1efd0b7 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -990,13 +990,8 @@ 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";