summaryrefslogtreecommitdiffstats
path: root/Lib/decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-20 13:38:04 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-20 13:38:04 (GMT)
commit06bb6746ed6151403e678fee8a37e8c90b9791ea (patch)
tree20d893669760b7cdf0d26725ba5ae2cfdbda0d8a /Lib/decimal.py
parentafaf48b953b6437a261b991c45cb8700afbcfb0a (diff)
downloadcpython-06bb6746ed6151403e678fee8a37e8c90b9791ea.zip
cpython-06bb6746ed6151403e678fee8a37e8c90b9791ea.tar.gz
cpython-06bb6746ed6151403e678fee8a37e8c90b9791ea.tar.bz2
Merged revisions 75561 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75561 | mark.dickinson | 2009-10-20 14:33:03 +0100 (Tue, 20 Oct 2009) | 3 lines Issue #7099: Decimal.is_normal should return True for all nonzero finite non-subnormal values, even those with exponent > Emax. ........
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index 5045722..e0c691b 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -3000,7 +3000,7 @@ class Decimal(object):
return False
if context is None:
context = getcontext()
- return context.Emin <= self.adjusted() <= context.Emax
+ return context.Emin <= self.adjusted()
def is_qnan(self):
"""Return True if self is a quiet NaN; otherwise return False."""