[pypy-svn] r16348 - pypy/dist/pypy/module/__builtin__

nik at codespeak.net nik at codespeak.net
Wed Aug 24 11:12:52 CEST 2005


Author: nik
Date: Wed Aug 24 11:12:51 2005
New Revision: 16348

Modified:
   pypy/dist/pypy/module/__builtin__/app_buffer.py
Log:
added dumb __repr__ method to make test_repr happy


Modified: pypy/dist/pypy/module/__builtin__/app_buffer.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/app_buffer.py	(original)
+++ pypy/dist/pypy/module/__builtin__/app_buffer.py	Wed Aug 24 11:12:51 2005
@@ -62,3 +62,7 @@
 
     def __len__(self):
         return len(self.buf)
+
+    def __repr__(self):
+        # We support only read-only buffers anyway
+        return "<read-only buffer for 0x000000>"



More information about the Pypy-commit mailing list