]> granicus.if.org Git - python/commitdiff
updated docstring on __bool__ to match behavior
authorJack Diederich <jackdied@gmail.com>
Tue, 28 Nov 2006 22:22:22 +0000 (22:22 +0000)
committerJack Diederich <jackdied@gmail.com>
Tue, 28 Nov 2006 22:22:22 +0000 (22:22 +0000)
Lib/decimal.py

index 4557e6a8f1ac081de6d9d27922df0514d2f9decf..2f2a617724286c343e407df37c0034bcd6709167 100644 (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