[New-bugs-announce] [issue9066] Standard type codes for array.array, same as struct

Craig McQueen report at bugs.python.org
Thu Jun 24 06:58:30 CEST 2010


New submission from Craig McQueen <python at craig.mcqueen.id.au>:

The type codes for array.array are platform-dependent.

The type codes are similar to those for the struct module. It would be helpful for array.array to adopt the struct module's "=" format specifier prefix, to specify "standard" sizes. E.g.

    array_object = array.array("=L")  # 4-byte elements on all platforms

----------
components: Library (Lib)
messages: 108501
nosy: cmcqueen1975
priority: normal
severity: normal
status: open
title: Standard type codes for array.array, same as struct
type: feature request
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9066>
_______________________________________


More information about the New-bugs-announce mailing list