diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-27 18:27:53 +0000 |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-27 18:27:53 +0000 |
| commit | 20a7cfcaa186c9acbbda0b53532b708c6d12aa4e (patch) | |
| tree | d3461f5c8443d9082c5e5906d59d02d95411597e /Lib/decimal.py | |
| parent | f3a0ff61e0f9eadd46e86689d01ae82509a0b425 (diff) | |
| download | cpython-git-20a7cfcaa186c9acbbda0b53532b708c6d12aa4e.tar.gz | |
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 d589fd779f..2156a66da1 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -2874,7 +2874,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.""" |
