This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pv
Recipients pv, theller
Date 2010-12-20.22:06:47
SpamBayes Score 0.009523643
Marked as misclassified No
Message-id <1292882808.9.0.159361940034.issue10744@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010-12-20 22:06:48pvsetrecipients: + pv, theller
2010-12-20 22:06:48pvsetmessageid: <1292882808.9.0.159361940034.issue10744@psf.upfronthosting.co.za>
2010-12-20 22:06:47pvlinkissue10744 messages
2010-12-20 22:06:47pvcreate