Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r71078:4cd75594bdd1
Date: 2014-04-29 16:09 -0700
http://bitbucket.org/pypy/pypy/changeset/4cd75594bdd1/
Log: have array support the new buffer interface
diff --git a/pypy/module/array/interp_array.py
b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -138,6 +138,9 @@
self.len = 0
self.allocated = 0
+ def buffer_w(self, space, flags):
+ return ArrayBuffer(self, False)
+
def readbuf_w(self, space):
return ArrayBuffer(self, True)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit