[issue1242657] list(obj) can swallow KeyboardInterrupt
Georg Brandl
report at bugs.python.org
Sun Jul 20 23:44:40 CEST 2008
Georg Brandl <georg at python.org> added the comment:
The problem is in _PyObject_LengthHint which calls len(o) and masks all
exceptions from it. Its comments says "This function never fails.
Accordingly, it will mask exceptions raised in either method."
Would it be better to at least not mask BaseExceptions?
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1242657>
_______________________________________
More information about the Python-bugs-list
mailing list