diff options
author | Jack Diederich <jackdied@gmail.com> | 2006-11-28 22:22:22 (GMT) |
---|---|---|
committer | Jack Diederich <jackdied@gmail.com> | 2006-11-28 22:22:22 (GMT) |
commit | 030debb9541f6187146c5e0f8d47022fd6d63c6e (patch) | |
tree | 3f664774d330796eeeacef72bec3b888298d6667 | |
parent | 4dafcc4ece09c2a60473bb109513de4e7d2c2b11 (diff) | |
download | cpython-030debb9541f6187146c5e0f8d47022fd6d63c6e.zip cpython-030debb9541f6187146c5e0f8d47022fd6d63c6e.tar.gz cpython-030debb9541f6187146c5e0f8d47022fd6d63c6e.tar.bz2 |
updated docstring on __bool__ to match behavior
-rw-r--r-- | Lib/decimal.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index 4557e6a..2f2a617 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 |