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.
13 lines
251 B
13 lines
251 B
4 years ago
|
"""
|
||
|
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')
|