[pypy-svn] pypy default: (fijal, arigo)

arigo commits-noreply at bitbucket.org
Thu Jan 20 10:25:55 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r40967:a3891db1ec2a
Date: 2011-01-20 10:24 +0100
http://bitbucket.org/pypy/pypy/changeset/a3891db1ec2a/

Log:	(fijal, arigo)

	space.wrap(rbigint).

diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -12,6 +12,7 @@
 from pypy.rlib.rarithmetic import base_int, widen
 from pypy.rlib.objectmodel import we_are_translated
 from pypy.rlib.jit import hint
+from pypy.rlib.rbigint import rbigint
 from pypy.tool.sourcetools import func_with_new_name
 
 # Object imports
@@ -181,6 +182,8 @@
                 return self.newint(x)
             else:
                 return W_LongObject.fromrarith_int(x)
+        if isinstance(x, rbigint):
+            return W_LongObject(x)
 
         # _____ below here is where the annotator should not get _____
 


More information about the Pypy-commit mailing list