Update docstring with more useful text (from the PEP)
This commit is contained in:
parent
a318a3b2fb
commit
9ede557d34
|
@ -303,7 +303,7 @@ class Integral(Rational):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def __index__(self):
|
def __index__(self):
|
||||||
"""index(self)"""
|
"""Called whenever an index is needed, such as in slicing"""
|
||||||
return long(self)
|
return long(self)
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
|
Loading…
Reference in New Issue