[issue23933] Struct module should acept arrays
Anderson
report at bugs.python.org
Mon Apr 13 18:52:20 CEST 2015
Anderson added the comment:
@wolma, That would work in this simple example. But in a more complicated case this became inconvenient.
Actually I'm working with reading and writing in python an extremely C-oriented file-type (MDV). For that I represent C-structs as python dics (e.q {"array":[v1,v2,v3,v4]}), and because of this lack of arrays I'm forced to keep track if a key represents a single value or an array. It works, but I think everyone would benefit if struct could handle that simple task.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23933>
_______________________________________
More information about the Python-bugs-list
mailing list