New issue 2831: memoryview format is incomplete
https://bitbucket.org/pypy/pypy/issues/2831/memoryview-format-is-incomplete

mattip:

the following script
```
from __future__ import print_function
import ctypes

a = memoryview(ctypes.c_uint8())
b = memoryview(ctypes.pointer(ctypes.c_uint8()))

print('uint8 format', a.format)
print('&uint8 format', b.format)
```

on cpython 2 or 3 prints
```
uint8 format <B
&uint8 format &<B
```

but on pypy 2 or 3.5 prints
```
uint8 format B
&uint8 format B
```
the lack of `&` in the view to a pointer causes a numpy test to fail


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to