I'm not a fan of the *format parameters used in unpack, readlist etc.
It might be better to only allow 'format', but let it be an iterable. So
instead of:
>>> a, b, c = s.unpack('hex:4', 'oct:3', 'bin:1')
make it:
>>> a, b, c = s.unpack(['hex:4', 'oct:3', 'bin:1'])
This is also in line with the change proposed to startswith and endswith.
Affects peeklist, readlist, unpack.
Original issue reported on code.google.com by python.bitstring@googlemail.com on 24 Jan 2010 at 7:06
Original issue reported on code.google.com by
python.bitstring@googlemail.com
on 24 Jan 2010 at 7:06