[pypy-commit] pypy default: Add a comment.
arigo
noreply at buildbot.pypy.org
Tue Mar 20 19:08:41 CET 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r53839:52418dfbc2d5
Date: 2012-03-20 19:07 +0100
http://bitbucket.org/pypy/pypy/changeset/52418dfbc2d5/
Log: Add a comment.
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
@@ -69,6 +69,10 @@
return W_MemoryView(buf)
def descr_buffer(self, space):
+ """Note that memoryview() objects in PyPy support buffer(), whereas
+ not in CPython; but CPython supports passing memoryview() to most
+ built-in functions that accept buffers, with the notable exception
+ of the buffer() built-in."""
return space.wrap(self.buf)
def descr_tobytes(self, space):
More information about the pypy-commit
mailing list