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.
  ........
................
This commit is contained in:
Mark Dickinson 2009-10-20 13:40:25 +00:00
parent 8b8650aa93
commit 2d4fce2dfb
3 changed files with 16 additions and 13 deletions

View file

@ -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."""