micropython/tests/basics/class_misc.py

10 wiersze
131 B
Python
Czysty Zwykły widok Historia

# converting user instance to buffer
class C:
pass
c = C()
try:
d = bytearray(c)
except TypeError:
print('TypeError')