Message124406
Ctypes arrays have invalid buffer interface information (on Python 3.1.2):
>>> import ctypes
>>> x = (ctypes.c_double*2)()
>>> y = memoryview(x)
>>> y.shape
(2,)
>>> y.format
'(2)<d'
This implies that the array contains 2 items, each consisting of 2 floats, which is incorrect -- the shape information is duplicated.
A suggested fix is attached.
(From http://projects.scipy.org/numpy/ticket/1699) |
|
Date |
User |
Action |
Args |
2010-12-20 22:06:48 | pv | set | recipients:
+ pv, theller |
2010-12-20 22:06:48 | pv | set | messageid: <1292882808.9.0.159361940034.issue10744@psf.upfronthosting.co.za> |
2010-12-20 22:06:47 | pv | link | issue10744 messages |
2010-12-20 22:06:47 | pv | create | |
|