[pypy-svn] r5027 - pypy/trunk/src/pypy/objspace

arigo at codespeak.net arigo at codespeak.net
Thu Jun 10 14:47:20 CEST 2004


Author: arigo
Date: Thu Jun 10 14:47:19 2004
New Revision: 5027

Modified:
   pypy/trunk/src/pypy/objspace/descroperation.py
Log:
Bug fix.


Modified: pypy/trunk/src/pypy/objspace/descroperation.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/descroperation.py	(original)
+++ pypy/trunk/src/pypy/objspace/descroperation.py	Thu Jun 10 14:47:19 2004
@@ -375,6 +375,8 @@
     specialname, = specialnames
     assert specialname.startswith('__i') and specialname.endswith('__')
     noninplacespacemethod = specialname[3:-2]
+    if noninplacespacemethod in ['or', 'and']:
+        noninplacespacemethod += '_'     # not too clean
     def inplace_impl(space,w_lhs,w_rhs):
         w_impl = space.lookup(w_lhs,specialname)
         if w_impl is not None:



More information about the Pypy-commit mailing list