[New-bugs-announce] [issue1200] Allow array.array to be parsed by the t# format unit.

Jeffrey Yasskin report at bugs.python.org
Tue Sep 25 07:25:32 CEST 2007

New submission from Jeffrey Yasskin:

This changes PyArg_ParseTuple()'s "t#" to request a PyBUF_SIMPLE buffer
like all of the other buffer-using format units instead of
PyBUF_CHARACTER. Objects with multi-byte units wind up
byte-order-dependent. Alternately, it might make sense to have
array.array('b') and array.array('B') accept the PyBUF_CHARACTER flag.

I haven't actually tested this patch on a big-endian machine.

components: Interpreter Core
files: let_t_format_take_array.patch
messages: 56126
nosy: jyasskin
severity: normal
status: open
title: Allow array.array to be parsed by the t# format unit.
type: behavior
versions: Python 3.0

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: let_t_format_take_array.patch
Type: application/octet-stream
Size: 4198 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20070925/8549bd6b/attachment-0001.obj 

More information about the New-bugs-announce mailing list