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 skrah
Recipients mark.dickinson, pitrou, pv, skrah, theller
Date 2011-08-14.20:28:36
SpamBayes Score 0.0015920723
Marked as misclassified No
Message-id <1313353717.55.0.274244349048.issue10744@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the patch. I agree with the interpretation of the format string.
One thing is unclear though: Using this interpretation the multi-dimensional 
array notation in format strings only seems useful for pointers to arrays.

The PEP isn't so clear on that, would you agree?


I'm not done reviewing the patch, just a couple of nitpicks:

  - We need a function declaration of _ctypes_alloc_format_string_with_shape()
    in ctypes.h.

  - prefix_len = 32*(ndim+1) + 3: This is surely sufficient, but (ndim+1)
    is not obvious to me. I think we need (20 + 1) * ndim + 3.

  - I'd use "%zd" for Py_ssize_t (I know that in other parts of the
    code "%ld" is used, too).
History
Date User Action Args
2011-08-14 20:28:37skrahsetrecipients: + skrah, theller, mark.dickinson, pitrou, pv
2011-08-14 20:28:37skrahsetmessageid: <1313353717.55.0.274244349048.issue10744@psf.upfronthosting.co.za>
2011-08-14 20:28:36skrahlinkissue10744 messages
2011-08-14 20:28:36skrahcreate