mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
modstruct: Rename module to "ustruct", to allow full Python-level impl.
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user