summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-02 22:55:09 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-02-02 22:55:09 (GMT)
commite8364233aea88cf68e8f54a515dce10160ead35b (patch)
treebbe6369d9536d20602676c097b8c60ce8fa325a0 /Include
parent9f9892648f954e45a628113febb524261075db32 (diff)
downloadcpython-e8364233aea88cf68e8f54a515dce10160ead35b.zip
cpython-e8364233aea88cf68e8f54a515dce10160ead35b.tar.gz
cpython-e8364233aea88cf68e8f54a515dce10160ead35b.tar.bz2
Issue 1242657: list(obj) can swallow KeyboardInterrupt.
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h2
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);