[pypy-svn] r50028 - pypy/branch/ghop-ropes-classes/pypy/rlib
vinogradov at codespeak.net
vinogradov at codespeak.net
Sun Dec 23 10:22:46 CET 2007
Author: vinogradov
Date: Sun Dec 23 10:22:46 2007
New Revision: 50028
Modified:
pypy/branch/ghop-ropes-classes/pypy/rlib/ropewrapper.py
Log:
Implement methods of RopeString 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 10:22:46 2007
@@ -12,6 +12,10 @@
def __eq__ (self, other):
return rope.eq (self._node, rope.LiteralStringNode(other))
+
+ def __add__ (self, other):
+ self._node = self._node + other._node
+ return self
class RopeUnicode(object):
pass
More information about the Pypy-commit
mailing list