modstruct: Rename module to "ustruct", to allow full Python-level impl.

This commit is contained in:
Paul Sokolovsky
2015-05-04 16:35:40 +03:00
parent 1829d86ef5
commit 3d3ef36e97
9 changed files with 24 additions and 10 deletions

View File

@@ -1,4 +1,7 @@
import struct
try:
import ustruct as struct
except:
import struct
print(struct.calcsize("<bI"))
print(struct.unpack("<bI", b"\x80\0\0\x01\0"))
print(struct.calcsize(">bI"))