[pypy-commit] pypy math-improvements: Digits don't change post-construction

stian pypy.commits at gmail.com
Tue Oct 24 17:38:19 EDT 2017


Author: stian
Branch: math-improvements
Changeset: r92839:7427553eee6b
Date: 2017-10-24 18:42 +0200
http://bitbucket.org/pypy/pypy/changeset/7427553eee6b/

Log:	Digits don't change post-construction

diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -143,7 +143,7 @@
 class rbigint(object):
     """This is a reimplementation of longs using a list of digits."""
     _immutable_ = True
-    _immutable_fields_ = ["_digits", "size", "sign"]
+    _immutable_fields_ = ["_digits[*]", "size", "sign"]
     
     def __init__(self, digits=NULLDIGITS, sign=0, size=0):
         if not we_are_translated():


More information about the pypy-commit mailing list