Issue #23275: Allow () = iterable assignment syntax

Documentation updates by Martin Panter.
This commit is contained in:
Berker Peksag 2016-05-18 08:44:29 +03:00
parent 93d22ecc7c
commit 094c9c921c
7 changed files with 41 additions and 41 deletions

View file

@ -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";