summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-25 05:41:11 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-25 05:41:11 (GMT)
commitb59290f5b2e7f023364ffe01164f4495461e8472 (patch)
tree7199bc2afba57bd3826c8aced5de327cd31c63a8 /Python
parentdfca4dc503b884ddd544a670d1b23b56bb315cfd (diff)
downloadcpython-b59290f5b2e7f023364ffe01164f4495461e8472.zip
cpython-b59290f5b2e7f023364ffe01164f4495461e8472.tar.gz
cpython-b59290f5b2e7f023364ffe01164f4495461e8472.tar.bz2
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 ;)
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
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;