[pypy-svn] r10827 - pypy/dist/pypy/objspace/std

pedronis at codespeak.net pedronis at codespeak.net
Mon Apr 18 21:12:08 CEST 2005


Author: pedronis
Date: Mon Apr 18 21:12:08 2005
New Revision: 10827

Modified:
   pypy/dist/pypy/objspace/std/objspace.py
Log:
keep W_LongObject.__init__ args straight



Modified: pypy/dist/pypy/objspace/std/objspace.py
==============================================================================
--- pypy/dist/pypy/objspace/std/objspace.py	(original)
+++ pypy/dist/pypy/objspace/std/objspace.py	Mon Apr 18 21:12:08 2005
@@ -190,7 +190,8 @@
             wrappeditems = [self.wrap(item) for item in x]
             return W_ListObject(self, wrappeditems)
         if isinstance(x, long):
-            return W_LongObject(self, x)
+            from pypy.objspace.std.longobject import args_from_long
+            return W_LongObject(self, *args_from_long(x))
         if isinstance(x, complex):
             # XXX is this right?   YYY no, this is wrong right now  (CT)
             # ZZZ hum, seems necessary for complex literals in co_consts (AR)



More information about the Pypy-commit mailing list