diff options
author | Raymond Hettinger <python@rcn.com> | 2009-02-02 22:55:09 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-02-02 22:55:09 (GMT) |
commit | e8364233aea88cf68e8f54a515dce10160ead35b (patch) | |
tree | bbe6369d9536d20602676c097b8c60ce8fa325a0 /Include/abstract.h | |
parent | 9f9892648f954e45a628113febb524261075db32 (diff) | |
download | cpython-e8364233aea88cf68e8f54a515dce10160ead35b.zip cpython-e8364233aea88cf68e8f54a515dce10160ead35b.tar.gz cpython-e8364233aea88cf68e8f54a515dce10160ead35b.tar.bz2 |
Issue 1242657: list(obj) can swallow KeyboardInterrupt.
Diffstat (limited to 'Include/abstract.h')
-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 b3e7030..f4e31c7 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -392,7 +392,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); |