[issue1242657] list(obj) can swallow KeyboardInterrupt

Raymond Hettinger report at bugs.python.org
Mon Jul 28 20:56:08 CEST 2008

Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

Georg's suggestion seems reasonable.  Alternatively, you can just catch 
AttributeError or TypeError.

Lowering the priority to normal and marking as unresolved.  At some 
point, it would be nice to review the whole code base to see if other 
calls to PyErr_Clear() are too aggressive.  In that review, perhaps a 
more clean and general solution with present itself.

assignee: rhettinger -> georg.brandl
priority: critical -> normal
resolution: fixed -> 
versions: +Python 2.6, Python 3.1

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list