From: Jack Diederich Date: Tue, 28 Nov 2006 22:22:22 +0000 (+0000) Subject: updated docstring on __bool__ to match behavior X-Git-Tag: v3.0a1~1298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=030debb9541f6187146c5e0f8d47022fd6d63c6e;p=python updated docstring on __bool__ to match behavior --- diff --git a/Lib/decimal.py b/Lib/decimal.py index 4557e6a8f1..2f2a617724 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -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