Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 33861:4a3eaa1aa3af legacy-trunk
Fixed a comment and added another one.
| author | Armin Rigo <arigo@tunes.org> |
|---|---|
| date | Sat, 30 Oct 2004 21:08:59 +0000 |
| parents | 3467288089a1 |
| children | 24fc3eaa19e0 |
line wrap: on
line diff
--- a/Python/compile.c Sat Oct 30 08:55:08 2004 +0000 +++ b/Python/compile.c Sat Oct 30 21:08:59 2004 +0000 @@ -651,7 +651,7 @@ "if a and b:" "if a or b:" "a and b or c" - "a and b and c" + "(a and b) and c" x:JUMP_IF_FALSE y y:JUMP_IF_FALSE z --> x:JUMP_IF_FALSE z x:JUMP_IF_FALSE y y:JUMP_IF_TRUE z --> x:JUMP_IF_FALSE y+3 where y+3 is the instruction following the second test. @@ -749,6 +749,9 @@ while (adj--) codestr[h++] = codestr[i++]; } + /* The following assertion detects the presence of NOPs in the input + bytecode. The compiler never produces NOPs so far; if one day it + does, the way 'nops' is counted above must be changed. */ assert(h + nops == codelen); code = PyString_FromStringAndSize((char *)codestr, h);
