We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b080cf commit 0bd3f32Copy full SHA for 0bd3f32
1 file changed
tests/basics/struct1.py
@@ -61,3 +61,8 @@
61
struct.pack(1, 2)
62
except TypeError:
63
print('TypeError')
64
+
65
+# Initially repitition counters were supported only for strings,
66
+# but later were implemented for all.
67
+print(struct.unpack("<3B2h", b"foo\x12\x34\xff\xff"))
68
+print(struct.pack("<3B", 1, 2, 3))
0 commit comments