mirror of
https://github.com/python/cpython.git
synced 2025-09-11 19:27:07 +00:00
Add some asserts and update comments
This commit is contained in:
parent
499b0e638b
commit
c173b488dc
2 changed files with 4 additions and 2 deletions
|
@ -3031,6 +3031,7 @@ compiler_boolop(struct compiler *c, expr_ty e)
|
|||
return 0;
|
||||
s = e->v.BoolOp.values;
|
||||
n = asdl_seq_LEN(s) - 1;
|
||||
assert(n >= 0);
|
||||
for (i = 0; i < n; ++i) {
|
||||
VISIT(c, expr, (expr_ty)asdl_seq_GET(s, i));
|
||||
ADDOP_JREL(c, jumpi, end);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue