Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: math-improvements
Changeset: r95471:5b9d394a43cd
Date: 2018-12-13 13:08 +0100
http://bitbucket.org/pypy/pypy/changeset/5b9d394a43cd/

Log:    use CPython's long formatting in debug-only __repr__

diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -1439,7 +1439,7 @@
     def __repr__(self):
         return "<rbigint digits=%s, sign=%s, size=%d, len=%d, %s>" % 
(self._digits,
                                             self.sign, self.numdigits(), 
len(self._digits),
-                                            self.str())
+                                            self.tolong())
 
 ONERBIGINT = rbigint([ONEDIGIT], 1, 1)
 ONENEGATIVERBIGINT = rbigint([ONEDIGIT], -1, 1)
@@ -2178,7 +2178,7 @@
         if d1 < b:
             return True
     return False
-        
+
 # ______________ conversions to double _______________
 
 def _AsScaledDouble(v):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to