commit | e2544bc90941835bbac89db2a50bbceab0dea48f | [log] [tgz] |
---|---|---|
author | Éric Araujo <merwok@netwok.org> | Thu Nov 03 04:34:09 2011 +0100 |
committer | Éric Araujo <merwok@netwok.org> | Thu Nov 03 04:34:09 2011 +0100 |
tree | 01e1a6a3dca15ef7e34dd8e06239ccb6dfa32389 | |
parent | c465b2f843218565c2908528555fbdb7c95523c0 [diff] [blame] |
Fix incorrect docstring I changed a while back. New wording is taken straight from the PEP, so this time should be good :)
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 @@ raise NotImplementedError def __index__(self): - """someobject[self]""" + """Called whenever an index is needed, such as in slicing""" return int(self) @abstractmethod