[pypy-commit] pypy buffer-interface: fix micronumpy test_zjit by adding _attrs_ to the class

mattip pypy.commits at gmail.com
Fri Sep 2 02:49:15 EDT 2016


Author: Matti Picus <matti.picus at gmail.com>
Branch: buffer-interface
Changeset: r86835:6cebc47b780b
Date: 2016-09-02 09:47 +0300
http://bitbucket.org/pypy/pypy/changeset/6cebc47b780b/

Log:	fix micronumpy test_zjit by adding _attrs_ to the class

diff --git a/pypy/objspace/std/memoryobject.py b/pypy/objspace/std/memoryobject.py
--- a/pypy/objspace/std/memoryobject.py
+++ b/pypy/objspace/std/memoryobject.py
@@ -14,6 +14,7 @@
     """Implement the built-in 'memoryview' type as a wrapper around
     an interp-level buffer.
     """
+    _attrs_ = ['buf']
 
     def __init__(self, buf):
         assert isinstance(buf, Buffer)


More information about the pypy-commit mailing list