Commit aa94e359 authored by Jack Diederich's avatar Jack Diederich

updated docstring on __bool__ to match behavior

parent f53f3528
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment