From e2544bc90941835bbac89db2a50bbceab0dea48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Thu, 3 Nov 2011 04:34:09 +0100 Subject: [PATCH] Fix incorrect docstring I changed a while back. New wording is taken straight from the PEP, so this time should be good :) --- Lib/numbers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/numbers.py b/Lib/numbers.py index f35704dd394..ecfad7cef8b 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