]> granicus.if.org Git - python/commit
Update assertion in compiler_addop_i()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 1 Mar 2016 22:34:47 +0000 (23:34 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 1 Mar 2016 22:34:47 +0000 (23:34 +0100)
commit2ad474ba5e8ac06b7edae3cd2e15ab93212dd01b
tree2ece1014f0f7e4ec0c4309b376c6fb207da9e921
parentf2192855dd16b3f5316599c47d958b3ccc2d3758
Update assertion in compiler_addop_i()

In practice, bytecode instruction arguments are unsigned. Update the assertion
to make it more explicit that argument must be greater or equal than 0.

Rewrite also the comment.
Python/compile.c