summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-02 22:44:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-02-02 22:44:06 (GMT)
commit24e2872f0d04c0d7c1745f677aef1a335433b556 (patch)
treed11c883d601cda87a46839fbc6ba321089c6cb61 /Include
parentb2dbd4309aa3d2a8a823d251447b8fd8b4b2d7e3 (diff)
downloadcpython-24e2872f0d04c0d7c1745f677aef1a335433b556.zip
cpython-24e2872f0d04c0d7c1745f677aef1a335433b556.tar.gz
cpython-24e2872f0d04c0d7c1745f677aef1a335433b556.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 f3bc8bc..c8446eb 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);