Ticket #66 (closed defect: wontfix)

Opened 4 months ago

Last modified 2 months ago

Buffers: Handle more alignments

Reported by: dagss Assigned to: somebody
Priority: minor Milestone: 0.10
Component: Code Generation Version:
Keywords: numerics buffers Cc:

Description

When writing the buffer support I wrongly read the spec of the type string -- I ignored the fact that all but "@" ordering uses a standardized size and alignment.

Change History

09/04/2008 04:49:38 AM changed by dagss

  • summary changed from Buffers handle type strings incorrectly to Buffers: Handle more alignments.
  • milestone changed from 0.9.8.2 to wishlist.

For now I'm disallowing anything but the "@" format; http://hg.cython.org/cython-devel/rev/49f8117553a9

This also fixes the fact that the packing specifier can now (with the buffer PEP) occur anywhere in the string.

In the future, one could allow the rest as long as the endianness was correct -- i.e. "i" would trigger the assumption "sizeof(field) == 4" rather than "sizeof(field) == sizeof(int)".

09/04/2008 04:50:16 AM changed by dagss

  • priority changed from major to minor.

09/23/2008 02:04:01 PM changed by dagss

  • status changed from new to closed.
  • resolution set to wontfix.

#76 provides a good work-around for these issues which I believe will work well for all practical purposes. I'm closing this ticket, at least until someone else but me actually needs it in a real-life situation.

11/08/2008 02:41:45 PM changed by robertwb

  • milestone changed from wishlist to 0.10.