mirror of
https://github.com/python/cpython.git
synced 2025-08-20 00:32:12 +00:00
Backport 52621:
Bug #1588287: fix invalid assertion for `1,2` in debug builds.
This commit is contained in:
parent
56602a14e6
commit
a3ce6aa8b7
3 changed files with 4 additions and 0 deletions
|
@ -538,6 +538,7 @@ seq_for_testlist(struct compiling *c, const node *n)
|
|||
|| TYPE(n) == listmaker
|
||||
|| TYPE(n) == testlist_gexp
|
||||
|| TYPE(n) == testlist_safe
|
||||
|| TYPE(n) == testlist1
|
||||
);
|
||||
|
||||
seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue