Steve Barnes wrote:
It would be very nice if:
a) iter_unpack.next produced an iterator that optionally took an
additional parameter of a format string, (with endianness permitted), to
replace the current format string in use.
Hmmm, rather than screw around with the iterator
protocol, it might be better to design a separate
api for this. Maybe a pair of functions:
struct.read(stream, format)
struct.write(stream, format, data)
--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/