[issue17804] streaming struct unpacking

Antoine Pitrou report at bugs.python.org
Sun Apr 21 16:59:07 CEST 2013


Antoine Pitrou added the comment:

> Yes, It's mainly because a grouper written on Python. When it will be
> implemented in C, the difference will be less. This function will be
> useful beside struct.

I'm not against adding useful C tools to itertools, but you may have to
convince Raymond ;)

> As for extending Struct, what you think about a more powerful feature?
> About a method which returns not an iterator, but an iterable and
> indexable sequence. Here is a sample Python implementation.

I'll take a look, but the question is how complex a C implementation
would be.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17804>
_______________________________________


More information about the Python-bugs-list mailing list