[docs] bytearray and language usage.

Mark Janssen dreamingforward at gmail.com
Fri Jun 28 01:50:35 CEST 2013


Looking at the Python docs for v2.7.5.

Section 2.

bytearray([source[, encoding[, errors]]])

"  Return a new array of bytes. The bytearray type is a mutable
sequence of integers in the range 0 <= x < 256."

This should not be called a "mutable sequence of integers", because to
call them "integers" already casts raw bits into a particular *type*.
They could, hypothetically be very short floats, for example.

More accurately, they are merely "uninterpreted bits presented to the
user in 8-bit chunks, with a consistent starting boundary" (held by
the machine storage address).

-- 
MarkJ
Tacoma, Washington


More information about the docs mailing list