]> granicus.if.org Git - python/commit
SF bug 567538: Generator can crash the interpreter (Finn Bock).
authorGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 03:45:21 +0000 (03:45 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 03:45:21 +0000 (03:45 +0000)
commitc5fe5eb8d2650026ae7ce9195cd0dfc153514d2a
treea3244f08eeb082ad3c54f572340d426db313a573
parent969de458aa12e831942637bbcd9994b29dc86252
SF bug 567538: Generator can crash the interpreter (Finn Bock).

This was a simple typo.  Strange that the compiler didn't catch it!
Instead of WHY_CONTINUE, two tests used CONTINUE_LOOP, which isn't a
why_code at all, but an opcode; but even though 'why' is declared as
an enum, comparing it to an int is apparently not even worth a
warning -- not in gcc, and not in VC++. :-(

Will fix in 2.2 too.
Lib/test/test_generators.py
Misc/NEWS
Python/ceval.c