From b516370bcbeef7391edc28fa6bfcc8da6d98beea Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 2 Feb 2009 21:50:13 +0000 Subject: Issue 1242657: list(obj) can swallow KeyboardInterrupt. --- Include/abstract.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include') diff --git a/Include/abstract.h b/Include/abstract.h index 87afe9a640..fc9c6b5b45 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -438,7 +438,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ /* Guess the size of object o using len(o) or o.__length_hint__(). If neither of those return a non-negative value, then return the - default value. This function never fails. All exceptions are cleared. + default value. If one of the calls fails, this function returns -1. */ PyAPI_FUNC(PyObject *) PyObject_GetItem(PyObject *o, PyObject *key); -- cgit v1.2.1