You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
251 B
12 lines
251 B
"""
|
|
categories: Modules,struct
|
|
description: Struct pack with too few args, not checked by uPy
|
|
cause: Unknown
|
|
workaround: Unknown
|
|
"""
|
|
import struct
|
|
try:
|
|
print(struct.pack('bb', 1))
|
|
print('Should not get here')
|
|
except:
|
|
print('struct.error')
|
|
|