diff options
author | Raymond Hettinger <python@rcn.com> | 2009-02-02 21:50:13 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-02-02 21:50:13 (GMT) |
commit | b516370bcbeef7391edc28fa6bfcc8da6d98beea (patch) | |
tree | 057c3efe6e2de33086e1762a5a17d68384368eb0 /Include | |
parent | d7bb4d484ff0adb0f40e34ed316e58e8a4b88a9e (diff) | |
download | cpython-b516370bcbeef7391edc28fa6bfcc8da6d98beea.zip cpython-b516370bcbeef7391edc28fa6bfcc8da6d98beea.tar.gz cpython-b516370bcbeef7391edc28fa6bfcc8da6d98beea.tar.bz2 |
Issue 1242657: list(obj) can swallow KeyboardInterrupt.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/abstract.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index 87afe9a..fc9c6b5 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); |