[New-bugs-announce] [issue23913] error in some byte sizes of docs in array module

Boyd Blackwell report at bugs.python.org
Sat Apr 11 10:03:59 CEST 2015

New submission from Boyd Blackwell:

See 8.6. array — Efficient arrays of numeric values¶

I think these two table entries should list 4 instead of 2, at least for 64 python.
The error is currently in 2.710rc0, but also in previous versions.
also in 3.4.3, presumably some previous versions
it might also be argued that the column heading should not but minimum size but simply Element Size (bytes)

'i'	signed int	int	2
'I'	unsigned int	long	2

import array

a = array.array('I')
#array('I', [67305985L])  # one element as expected (4 bytes, 4 bytes/elt)

a = array.array('H')
#array('H', [513, 1027])  # two elements as expected (4 bytes, 2 bytes/elt)

assignee: docs at python
components: Documentation
files: arraydocbug.py
messages: 240466
nosy: bdb112, docs at python
priority: normal
severity: normal
status: open
title: error in some byte sizes of docs in array module
versions: Python 2.7
Added file: http://bugs.python.org/file38897/arraydocbug.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list