diff options
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) |
commit | 9ede557d340f8cafe099322d2933fc153b649a9f (patch) | |
tree | 962054d650b4e02855fcc31e6e62dd232ec91564 /Lib | |
parent | a318a3b2fb127f7a18bc3a31bb0798272170d30d (diff) | |
download | cpython-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.py | 2 |
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 |