[pypy-svn] rev 917 - pypy/trunk/src/pypy/objspace/std

tismer at codespeak.net tismer at codespeak.net
Sun Jun 22 12:46:01 CEST 2003


Author: tismer
Date: Sun Jun 22 12:46:01 2003
New Revision: 917

Modified:
   pypy/trunk/src/pypy/objspace/std/inttype.py
Log:
fixed int(x)

Modified: pypy/trunk/src/pypy/objspace/std/inttype.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/inttype.py	(original)
+++ pypy/trunk/src/pypy/objspace/std/inttype.py	Sun Jun 22 12:46:01 2003
@@ -16,7 +16,7 @@
     if len(args) == 0:
         return space.newint(0)
     elif len(args) == 1:
-        return space.newint(args[0])
+        return space.newint(space.unwrap(args[0]))
     else:
         raise OperationError(space.w_TypeError,
                              space.wrap("int() takes at most 1 argument"))


More information about the Pypy-commit mailing list