summaryrefslogtreecommitdiffstats
path: root/Lib/decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-20 13:33:03 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-20 13:33:03 (GMT)
commita7a52ab7ee58be0afca3a7763fffc928dcf5459d (patch)
tree1d68a09ae7bb1ffd1305a2942f3a323d125da92e /Lib/decimal.py
parente047d7953f0ff940bcd10737204a44f42929dc82 (diff)
downloadcpython-a7a52ab7ee58be0afca3a7763fffc928dcf5459d.zip
cpython-a7a52ab7ee58be0afca3a7763fffc928dcf5459d.tar.gz
cpython-a7a52ab7ee58be0afca3a7763fffc928dcf5459d.tar.bz2
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 75e5eea..7384d36 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -2917,7 +2917,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."""