Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r58265:813f5fbdbc7b
Date: 2012-10-19 14:12 -0700
http://bitbucket.org/pypy/pypy/changeset/813f5fbdbc7b/
Log: utilize isfinite
diff --git a/pypy/objspace/std/floattype.py b/pypy/objspace/std/floattype.py
--- a/pypy/objspace/std/floattype.py
+++ b/pypy/objspace/std/floattype.py
@@ -296,7 +296,7 @@
ndigits = space.getindex_w(w_ndigits, None)
# nans and infinities round to themselves
- if rfloat.isinf(x) or rfloat.isnan(x):
+ if not rfloat.isfinite(x):
return space.wrap(x)
# Deal with extreme values for ndigits. For ndigits > NDIGITS_MAX, x
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit