mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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 ;)
This commit is contained in:
parent
dfca4dc503
commit
b59290f5b2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue