Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r89765:32be445aee1d
Date: 2017-01-25 15:20 +0000
http://bitbucket.org/pypy/pypy/changeset/32be445aee1d/
Log: Enable missing buffer procs for _io.BytesIO, array.array and
memoryview
diff --git a/pypy/module/_io/interp_bytesio.py
b/pypy/module/_io/interp_bytesio.py
--- a/pypy/module/_io/interp_bytesio.py
+++ b/pypy/module/_io/interp_bytesio.py
@@ -203,7 +203,7 @@
space.call_method(self.getdict(space), "update", w_dict)
W_BytesIO.typedef = TypeDef(
- '_io.BytesIO', W_BufferedIOBase.typedef,
+ '_io.BytesIO', W_BufferedIOBase.typedef, None, 'read-write',
__new__ = interp2app(W_BytesIO.descr_new.im_func),
__init__ = interp2app(W_BytesIO.descr_init),
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
@@ -539,7 +539,7 @@
return space.wrap(s)
W_ArrayBase.typedef = TypeDef(
- 'array.array',
+ 'array.array', None, None, 'read-write',
__new__ = interp2app(w_array),
__len__ = interp2app(W_ArrayBase.descr_len),
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
@@ -696,7 +696,7 @@
return flags & (MEMORYVIEW_SCALAR|MEMORYVIEW_C)
W_MemoryView.typedef = TypeDef(
- "memoryview",
+ "memoryview", None, None, "read-write",
__doc__ = """\
Create a new memoryview object which references the given object.
""",
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit