diff Lib/struct.py @ 83524:d232cff25bbd

Issue #17804: New function ``struct.iter_unpack`` allows for streaming struct unpacking.
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 27 Apr 2013 00:20:04 +0200
parents 4f94873846a3
children
line wrap: on
line diff
--- a/Lib/struct.py	Fri Apr 26 15:24:42 2013 +0200
+++ b/Lib/struct.py	Sat Apr 27 00:20:04 2013 +0200
@@ -1,6 +1,7 @@
 __all__ = [
     # Functions
     'calcsize', 'pack', 'pack_into', 'unpack', 'unpack_from',
+    'iter_unpack',
 
     # Classes
     'Struct',