kopia lustrzana https://github.com/micropython/micropython
10 wiersze
131 B
Python
10 wiersze
131 B
Python
|
# converting user instance to buffer
|
||
|
class C:
|
||
|
pass
|
||
|
|
||
|
c = C()
|
||
|
try:
|
||
|
d = bytearray(c)
|
||
|
except TypeError:
|
||
|
print('TypeError')
|