You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
a8408a8abe
Also, define object.__init__() (semantically empty, purely CPython compat measure). Addresses #520.
16 lines
274 B
Python
16 lines
274 B
Python
# Calling object.__init__() via super().__init__
|
|
|
|
class Test(object):
|
|
def __init__(self):
|
|
super().__init__()
|
|
print("Test.__init__")
|
|
|
|
t = Test()
|
|
|
|
class Test2:
|
|
def __init__(self):
|
|
super().__init__()
|
|
print("Test2.__init__")
|
|
|
|
t = Test2()
|