[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-02-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the review. Fixed in r69227. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: In _PyObject_LengthHint() code, at the line: if (ro == NULL && PyErr_Occurred()) { It seems that PyErr_Occurred() is not useful and is always true when the previous PyObject_CallMethodObjArgs() returned NULL. Otherwise the patch is fine to me. -

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Anyone else want to pick this up from here? ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-14 Thread Raymond Hettinger
Raymond Hettinger 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 t

[issue1242657] list(obj) can swallow KeyboardInterrupt

2009-01-14 Thread Nick Coghlan
Nick Coghlan added the comment: Reassigning to Raymond (as per the thread at http://mail.python.org/pipermail/python-dev/2009-January/085030.html) -- assignee: georg.brandl -> rhettinger nosy: +ncoghlan ___ Python tracker

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-28 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> 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 othe

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-28 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Raymond, can you comment? -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-20 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> 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 Bas

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I'm sorry, my use of "supposedly" was wrong here. ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Karen Tracey
Karen Tracey <[EMAIL PROTECTED]> added the comment: Thanks for responding. It had been fixed. 2.4/2.5 behave like so: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Reopening. For reference, the revision in which Raymond supposedly fixed this is r39305. -- nosy: +georg.brandl priority: normal -> critical status: closed -> open ___ Python tracker <[EMAIL PROTECTE

[issue1242657] list(obj) can swallow KeyboardInterrupt

2008-07-18 Thread Karen Tracey
Karen Tracey <[EMAIL PROTECTED]> added the comment: This behavior has reappeared in the 2.6 beta releases: Python 2.6b2 (r26b2:65082, Jul 18 2008, 13:36:54) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information