circuitpython/tests/basics/class_bytes.py
2024-09-05 14:54:18 -04:00

10 lines
219 B
Python

# CIRCUITPY-CHANGE: micropython does not have this test file
class C1:
def __init__(self, value):
self.value = value
def __bytes__(self):
return self.value
c1 = C1(b"class 1")
print(bytes(c1))