[pypy-svn] r4837 - pypy/branch/src-newobjectmodel/pypy/objspace/descr

pedronis at codespeak.net pedronis at codespeak.net
Wed Jun 2 19:49:09 CEST 2004


Author: pedronis
Date: Wed Jun  2 19:49:08 2004
New Revision: 4837

Modified:
   pypy/branch/src-newobjectmodel/pypy/objspace/descr/objspace.py
Log:
make descr import



Modified: pypy/branch/src-newobjectmodel/pypy/objspace/descr/objspace.py
==============================================================================
--- pypy/branch/src-newobjectmodel/pypy/objspace/descr/objspace.py	(original)
+++ pypy/branch/src-newobjectmodel/pypy/objspace/descr/objspace.py	Wed Jun  2 19:49:08 2004
@@ -109,7 +109,7 @@
 # add regular methods
 for _name, _symbol, _arity, _specialnames in ObjSpace.MethodTable:
     if not hasattr(DescrObjSpace,_name):
-        if _arity == 2: # binary
+        if _arity == 2 and len(_specialnames) == 2: # binary
             setattr(DescrObjSpace,_name,_make_binary_impl(_specialnames))
         
 



More information about the Pypy-commit mailing list