2017-02-06 23:55:37 -05:00
|
|
|
"""
|
|
|
|
categories: Modules,struct
|
|
|
|
description: Struct pack with too few args, not checked by uPy
|
|
|
|
cause: Unknown
|
|
|
|
workaround: Unknown
|
|
|
|
"""
|
|
|
|
import struct
|
2021-03-15 09:57:36 -04:00
|
|
|
|
2017-02-06 23:55:37 -05:00
|
|
|
try:
|
2021-03-15 09:57:36 -04:00
|
|
|
print(struct.pack("bb", 1))
|
|
|
|
print("Should not get here")
|
2017-02-06 23:55:37 -05:00
|
|
|
except:
|
2021-03-15 09:57:36 -04:00
|
|
|
print("struct.error")
|