summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2012-02-26 00:37:47 (GMT)
committerÉric Araujo <merwok@netwok.org>2012-02-26 00:37:47 (GMT)
commit9ede557d340f8cafe099322d2933fc153b649a9f (patch)
tree962054d650b4e02855fcc31e6e62dd232ec91564 /Lib
parenta318a3b2fb127f7a18bc3a31bb0798272170d30d (diff)
downloadcpython-9ede557d340f8cafe099322d2933fc153b649a9f.zip
cpython-9ede557d340f8cafe099322d2933fc153b649a9f.tar.gz
cpython-9ede557d340f8cafe099322d2933fc153b649a9f.tar.bz2
Update docstring with more useful text (from the PEP)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/numbers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/numbers.py b/Lib/numbers.py
index 2592643..bdc6dd6 100644
--- a/Lib/numbers.py
+++ b/Lib/numbers.py
@@ -303,7 +303,7 @@ class Integral(Rational):
raise NotImplementedError
def __index__(self):
- """index(self)"""
+ """Called whenever an index is needed, such as in slicing"""
return long(self)
@abstractmethod