Author: Matti Picus <[email protected]>
Branch: memoryview-attributes
Changeset: r86431:6d9a8c05c0e2
Date: 2016-08-23 14:19 +1000
http://bitbucket.org/pypy/pypy/changeset/6d9a8c05c0e2/

Log:    fix default value

diff --git a/pypy/module/micronumpy/ctors.py b/pypy/module/micronumpy/ctors.py
--- a/pypy/module/micronumpy/ctors.py
+++ b/pypy/module/micronumpy/ctors.py
@@ -468,7 +468,8 @@
     except OperationError as e:
         if not e.match(space, space.w_TypeError):
             raise
-        w_buffer = space.call_method(w_buffer, '__buffer__', space.wrap(0))
+        w_buffer = space.call_method(w_buffer, '__buffer__', 
+                                    space.newint(space.BUF_FULL_RO))
         buf = _getbuffer(space, w_buffer)
 
     ts = buf.getlength()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to