commit | 9ede557d340f8cafe099322d2933fc153b649a9f | [log] [tgz] |
---|---|---|
author | Éric Araujo <merwok@netwok.org> | Sun Feb 26 01:37:47 2012 +0100 |
committer | Éric Araujo <merwok@netwok.org> | Sun Feb 26 01:37:47 2012 +0100 |
tree | 962054d650b4e02855fcc31e6e62dd232ec91564 | |
parent | a318a3b2fb127f7a18bc3a31bb0798272170d30d [diff] [blame] |
Update docstring with more useful text (from the PEP)
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 @@ raise NotImplementedError def __index__(self): - """index(self)""" + """Called whenever an index is needed, such as in slicing""" return long(self) @abstractmethod