updated docstring on __bool__ to match behavior

This commit is contained in:
Jack Diederich 2006-11-28 22:22:22 +00:00
parent 4dafcc4ece
commit 030debb954

View file

@ -634,10 +634,10 @@ class Decimal(object):
return 0 return 0
def __bool__(self): def __bool__(self):
"""Is the number non-zero? """return True if the number is non-zero.
0 if self == 0 False if self == 0
1 if self != 0 True if self != 0
""" """
if self._is_special: if self._is_special:
return True return True