summaryrefslogtreecommitdiff
path: root/Include/abstract.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-02 21:50:13 +0000
committerRaymond Hettinger <python@rcn.com>2009-02-02 21:50:13 +0000
commit41d22954d3df109cae818ce9521bebb838e8c629 (patch)
tree2ec23efe0f9fa8f9bdc970373eccf4d83a5ab302 /Include/abstract.h
parenta8f4aef82167f99e443830a0668737914cad8bf7 (diff)
downloadcpython-41d22954d3df109cae818ce9521bebb838e8c629.tar.gz
Issue 1242657: list(obj) can swallow KeyboardInterrupt.
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h2
1 files changed, 1 insertions, 1 deletions
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);