Patch #1537 from Chad Austin

Change GeneratorExit's base class from Exception to BaseException
This commit is contained in:
Christian Heimes 2007-12-03 19:47:54 +00:00
parent 6554cb94ba
commit e69c320d48
7 changed files with 683 additions and 6 deletions

View file

@ -424,9 +424,9 @@ SimpleExtendsException(PyExc_Exception, StopIteration,
/*
* GeneratorExit extends Exception
* GeneratorExit extends BaseException
*/
SimpleExtendsException(PyExc_Exception, GeneratorExit,
SimpleExtendsException(PyExc_BaseException, GeneratorExit,
"Request that a generator exit.");