Author: Manuel Jacob Branch: refactor-buffer-api Changeset: r66429:fafa373dfec0 Date: 2013-08-29 16:52 +0100 http://bitbucket.org/pypy/pypy/changeset/fafa373dfec0/
Log: Fix strbufobject. diff --git a/pypy/objspace/std/strbufobject.py b/pypy/objspace/std/strbufobject.py --- a/pypy/objspace/std/strbufobject.py +++ b/pypy/objspace/std/strbufobject.py @@ -1,7 +1,7 @@ from pypy.objspace.std.model import registerimplementation, W_Object from pypy.objspace.std.register_all import register_all from pypy.objspace.std.stringobject import W_AbstractStringObject -from pypy.objspace.std.stringobject import W_StringObject +from pypy.objspace.std.stringobject import W_StringObject, StringBuffer from pypy.objspace.std.unicodeobject import delegate_String2Unicode from rpython.rlib.rstring import StringBuilder from pypy.interpreter.buffer import Buffer @@ -36,6 +36,9 @@ def str_w(self, space): return self.force() + def buffer_w(self, space): + return StringBuffer(self.force()) + registerimplementation(W_StringBufferObject) # ____________________________________________________________ _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit