With the aim of getting consistency, and removing the need to learn an additional term, replace uses of uPy/uPython with MPy/MicroPython. Rule of thumb was to use "MPy" abbreviation where "CPy" is used nearby, but the full word MicroPython otherwise. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
15 lines
261 B
Python
15 lines
261 B
Python
"""
|
|
categories: Modules,struct
|
|
description: Struct pack with too few args, not checked by MicroPython
|
|
cause: Unknown
|
|
workaround: Unknown
|
|
"""
|
|
|
|
import struct
|
|
|
|
try:
|
|
print(struct.pack("bb", 1))
|
|
print("Should not get here")
|
|
except:
|
|
print("struct.error")
|