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 nnemkin
Recipients nnemkin
Date 2013-03-04.08:26:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362385577.82.0.862277690656.issue17345@psf.upfronthosting.co.za>
In-reply-to
Content
Currently array module only provides platform-dependent type specifiers.
It would be very nice to have platform-independent specifiers in addition to that, matching the struct module.
For example array('<H') -> an array of little-endian 2-byte integers.

This issue crops up every time when I use array(). Binary data usually comes in some predefined format and a manual matching to native format has to be done (assuming I want to write portable code).

A useful extra would be to support multi-element struct specifiers and present an array of tuples in this case.
For example array('iff') -> an array of tuples (int, float, float) with native types.
History
Date User Action Args
2013-03-04 08:26:17nnemkinsetrecipients: + nnemkin
2013-03-04 08:26:17nnemkinsetmessageid: <1362385577.82.0.862277690656.issue17345@psf.upfronthosting.co.za>
2013-03-04 08:26:17nnemkinlinkissue17345 messages
2013-03-04 08:26:17nnemkincreate