]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport:
authorGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 03:48:46 +0000 (03:48 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 03:48:46 +0000 (03:48 +0000)
commit9d21cd7e1ac79097a87654ec2ed9c85d3b963e5e
tree5ba99a394240463a4713354459fc3193494fffd3
parent048127f1bd5619c8012c751415577956daf06100
Backport:

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++. :-(
Lib/test/test_generators.py
Misc/NEWS
Python/ceval.c