possibly I found an implementation error in micropython?
on CPython this code:
Code: Select all
class Controller:
def __init__(self):
print('__init__()')
def __del__(self):
print('__del__()')
def run(self):
print('run()')
try:
Controller().run()
except KeyboardInterrupt:
print('\nTerminated, Ctrl-C pressed')
except BaseException as exc:
print('\nUnhandled exception : ', type(exc), exc)
on micropython: __init__() and run().
_del__() is missing?? --> the destructor is not called?