Guido van Rossum wrote:
> On Dec 1, 2007 2:38 PM, Chad Austin <[EMAIL PROTECTED]> wrote:
>> This problem could be solved in several ways:
>>
>> 1) Make GeneratorExit derive from BaseException, just like SystemExit.
> 
> Well argued. I suggest to go for option (1) -- make GeneratorExit
> inherit from BaseException. We can do this starting 2.6. Feel free to
> upload a patch to bugs.python.org.

Great!  Patch is uploaded at http://bugs.python.org/issue1537

The patch changes the definition of GeneratorExit so that it extends 
BaseException, adds a generator test, updates exception_hierarchy.txt, and 
updates the exceptions page in the documentation.  This is my first patch to 
Python -- did I miss anything?

Thanks,
Chad
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to