From 9ede557d340f8cafe099322d2933fc153b649a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sun, 26 Feb 2012 01:37:47 +0100 Subject: [PATCH] Update docstring with more useful text (from the PEP) --- Lib/numbers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/numbers.py b/Lib/numbers.py index 2592643c136..bdc6dd65213 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