[issue1242657] list(obj) can swallow KeyboardInterrupt

Raymond Hettinger report at bugs.python.org
Thu Jan 15 08:45:05 CET 2009


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

Here's a patch that fixes-up length_hint and it's internal callers.

I think there are plenty of other places that also swallow exceptions
but will leave those for someone who wants to look at every instance of
PyErr_Clear() to see if it has been restricted to some small group of
exceptions.

----------
assignee: rhettinger -> 
keywords: +patch
versions: +Python 2.7, Python 3.0
Added file: http://bugs.python.org/file12749/lenhint.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1242657>
_______________________________________


More information about the Python-bugs-list mailing list