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
1 changed files with 3 additions and 3 deletions

View File

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