diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-20 13:40:25 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-20 13:40:25 (GMT) |
commit | 2d4fce2dfbf6d54167a38ed1eff2e49188ac2958 (patch) | |
tree | 04419e03420d4ef69160354f6734b360b8ba83b0 /Lib/decimal.py | |
parent | 8b8650aa93f9d1e39a36ac68cac04a5f169328b9 (diff) | |
download | cpython-2d4fce2dfbf6d54167a38ed1eff2e49188ac2958.zip cpython-2d4fce2dfbf6d54167a38ed1eff2e49188ac2958.tar.gz cpython-2d4fce2dfbf6d54167a38ed1eff2e49188ac2958.tar.bz2 |
Merged revisions 75562 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k
................
r75562 | mark.dickinson | 2009-10-20 14:38:04 +0100 (Tue, 20 Oct 2009) | 10 lines
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index 62dcd40..b44c3f5 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.""" |