Message 234365 - Python tracker
Message234365
| Author | eryksun |
|---|---|
| Recipients | Cesar.Kawakami, Devin Jeanpierre, Kyle.Buzsaki, eryksun, martin.panter, r.david.murray, rhettinger |
| Date | 2015-01-20.10:19:30 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1421749171.02.0.608455967148.issue23275@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
In ast.c, set_context checks for assignment to an empty tuple, but not an empty list.
case List_kind:
e->v.List.ctx = ctx;
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 = "()";
}
break;
https://hg.python.org/cpython/file/ab2c023a9432/Python/ast.c#l912 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-01-20 10:19:31 | eryksun | set | recipients: + eryksun, rhettinger, Devin Jeanpierre, r.david.murray, martin.panter, Cesar.Kawakami, Kyle.Buzsaki |
| 2015-01-20 10:19:31 | eryksun | set | messageid: <1421749171.02.0.608455967148.issue23275@psf.upfronthosting.co.za> |
| 2015-01-20 10:19:31 | eryksun | link | issue23275 messages |
| 2015-01-20 10:19:30 | eryksun | create | |