[Python-3000-checkins] r52857 - python/branches/p3yk/Lib/decimal.py
jack.diederich
python-3000-checkins at python.org
Tue Nov 28 23:22:35 CET 2006
Author: jack.diederich
Date: Tue Nov 28 23:22:22 2006
New Revision: 52857
Modified:
python/branches/p3yk/Lib/decimal.py
Log:
updated docstring on __bool__ to match behavior
Modified: python/branches/p3yk/Lib/decimal.py
==============================================================================
--- python/branches/p3yk/Lib/decimal.py (original)
+++ python/branches/p3yk/Lib/decimal.py Tue Nov 28 23:22:22 2006
@@ -634,10 +634,10 @@
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
More information about the Python-3000-checkins
mailing list