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.
Created on 2013年03月04日 08:26 by nnemkin, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg183425 - (view) | Author: Nikita Nemkin (nnemkin) * | Date: 2013年03月04日 08:26 | |
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.
|
|||
| msg215759 - (view) | Author: Paul Sokolovsky (pfalcon) * | Date: 2014年04月08日 13:37 | |
See also http://bugs.python.org/issue9066 |
|||
| msg278115 - (view) | Author: Berker Peksag (berker.peksag) * (Python committer) | Date: 2016年10月05日 09:43 | |
This looks like a duplicate of issue 9066. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:42 | admin | set | github: 61547 |
| 2016年10月05日 09:43:55 | berker.peksag | set | status: open -> closed superseder: Standard type codes for array.array, same as struct nosy: + berker.peksag messages: + msg278115 resolution: duplicate stage: needs patch -> resolved |
| 2014年04月13日 09:07:53 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka versions: + Python 3.5, - Python 3.4 |
| 2014年04月08日 13:37:47 | pfalcon | set | nosy:
+ pfalcon messages: + msg215759 |
| 2013年03月12日 00:28:53 | meador.inge | set | stage: needs patch |
| 2013年03月09日 02:12:11 | terry.reedy | set | nosy:
+ mark.dickinson, meador.inge |
| 2013年03月04日 08:26:17 | nnemkin | create | |