[Python-checkins] cpython (3.2): Fix incorrect docstring I changed a while back.

eric.araujo python-checkins at python.org
Thu Nov 3 16:45:53 CET 2011


http://hg.python.org/cpython/rev/65e5b68b24b1
changeset:   73327:65e5b68b24b1
branch:      3.2
parent:      73322:ea926dff958f
user:        Éric Araujo <merwok at netwok.org>
date:        Thu Nov 03 04:34:09 2011 +0100
summary:
  Fix incorrect docstring I changed a while back.

New wording is taken straight from the PEP, so this time should be good
:)

files:
  Lib/numbers.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/numbers.py b/Lib/numbers.py
--- 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list