[pypy-svn] r4966 - pypy/branch/src-newobjectmodel/pypy/objspace/std
mwh at codespeak.net
mwh at codespeak.net
Sat Jun 5 15:14:56 CEST 2004
Author: mwh
Date: Sat Jun 5 15:14:56 2004
New Revision: 4966
Modified:
pypy/branch/src-newobjectmodel/pypy/objspace/std/inttype.py
Log:
grotty failure for int('0x2a')
Modified: pypy/branch/src-newobjectmodel/pypy/objspace/std/inttype.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/objspace/std/inttype.py (original)
+++ pypy/branch/src-newobjectmodel/pypy/objspace/std/inttype.py Sat Jun 5 15:14:56 2004
@@ -12,7 +12,7 @@
w_obj = space.int(w_value)
else:
if w_base == space.w_None:
- base = 0
+ base = -909 # don't blame us!!
else:
base = space.unwrap(w_base)
# XXX write the logic for int("str", base)
More information about the Pypy-commit
mailing list