[pypy-commit] pypy refactor-buffer-api: Try to fix translation.

Manuel Jacob noreply at buildbot.pypy.org
Fri Aug 30 02:19:54 CEST 2013


Author: Manuel Jacob
Branch: refactor-buffer-api
Changeset: r66438:20c2a7b94341
Date: 2013-08-30 01:20 +0100
http://bitbucket.org/pypy/pypy/changeset/20c2a7b94341/

Log:	Try to fix translation.

diff --git a/pypy/module/__builtin__/interp_memoryview.py b/pypy/module/__builtin__/interp_memoryview.py
--- a/pypy/module/__builtin__/interp_memoryview.py
+++ b/pypy/module/__builtin__/interp_memoryview.py
@@ -72,6 +72,8 @@
         else:
             buf = buffer.SubBuffer(buf, offset, size)
         return W_Buffer(buf)
+    # hack to fix translation
+    descr_new.__get__('foo').__name__ = 'descr_new_buffer'
 
     def descr_len(self, space):
         return space.wrap(self.buf.getlength())


More information about the pypy-commit mailing list