From b59290f5b2e7f023364ffe01164f4495461e8472 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Fri, 25 Aug 2000 05:41:11 +0000 Subject: Fix allowable node-types for assignment, need to add 'listmaker'. (This fix is a bit broken, just as the test already was: the test for testlist and listmaker are done always, whereas the test for exprlist and the actual abort() are only done if Py_DEBUG is defined. Suggestions welcome, I guess ;) --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/compile.c b/Python/compile.c index c761e5e..0bfae14 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1959,7 +1959,7 @@ static void com_assign_sequence(struct compiling *c, node *n, int assigning) { int i; - if (TYPE(n) != testlist) + if (TYPE(n) != testlist && TYPE(n) != listmaker) REQ(n, exprlist); if (assigning) { i = (NCH(n)+1)/2; -- cgit v0.12