[pypy-svn] r50049 - pypy/branch/ghop-ropes-classes/pypy/rlib

vinogradov at codespeak.net vinogradov at codespeak.net
Sun Dec 23 20:02:12 CET 2007


Author: vinogradov
Date: Sun Dec 23 20:02:11 2007
New Revision: 50049

Modified:
   pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py
Log:
Implement methods of RopeUnicode to pass add test

Modified: pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py
==============================================================================
--- pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py	(original)
+++ pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py	Sun Dec 23 20:02:11 2007
@@ -42,3 +42,7 @@
     
     def __eq__(self, other):
         return rope.eq(self._node, rope.LiteralUnicodeNode(other))
+    
+    def __add__(self, other):
+        return RopeUnicode(self._node + other._node)
+



More information about the Pypy-commit mailing list