Serhiy Storchaka added the comment:

> Couldn't this be simplified to the following?

I think this is idiomatic now (since 2.5).

There are some places where similar outdated code used. See the attached patch. 
There are more dubious places in Lib/multiprocessing/managers.py and 
Lib/asyncore.py.

----------
keywords: +patch
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file27435/reraise_keyboard_interrupt.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16141>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to