summaryrefslogtreecommitdiffstats
path: root/Lib/numbers.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-11-03 03:34:09 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-11-03 03:34:09 (GMT)
commite2544bc90941835bbac89db2a50bbceab0dea48f (patch)
tree01e1a6a3dca15ef7e34dd8e06239ccb6dfa32389 /Lib/numbers.py
parentc465b2f843218565c2908528555fbdb7c95523c0 (diff)
downloadcpython-e2544bc90941835bbac89db2a50bbceab0dea48f.zip
cpython-e2544bc90941835bbac89db2a50bbceab0dea48f.tar.gz
cpython-e2544bc90941835bbac89db2a50bbceab0dea48f.tar.bz2
Fix incorrect docstring I changed a while back.
New wording is taken straight from the PEP, so this time should be good :)
Diffstat (limited to 'Lib/numbers.py')
-rw-r--r--Lib/numbers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/numbers.py b/Lib/numbers.py
index f35704d..ecfad7c 100644
--- a/Lib/numbers.py
+++ b/Lib/numbers.py
@@ -303,7 +303,7 @@ class Integral(Rational):
raise NotImplementedError
def __index__(self):
- """someobject[self]"""
+ """Called whenever an index is needed, such as in slicing"""
return int(self)
@abstractmethod