[Solved] User defined data types broken 1.19.1-443
Posted: Sat Sep 24, 2022 8:52 am
Some time ago I created a user defined data type, along with unary and binary operators for it, which I recall was based on online documentation and examples, eg https://micropython-usermod.readthedocs ... ds_10.html
What I have basically boils down to this -
That's now stopped compiling which I guess is due to a refactoring in recent days; I am using 1.19.1-443, Raspberry Pi 'RP2' port.
Is there any documentation or guidance on how I need to refactor my own code to get it to compile and make it work as it used to ?
What I have basically boils down to this -
Code: Select all
const mp_obj_type_t monotonic_time_type = {
{ &mp_type_type },
.name = MP_QSTR_monotonic_time,
.print = monotonic_time_print,
.make_new = monotonic_time_make_new,
.unary_op = monotonic_time_unary_op,
.binary_op = monotonic_time_binary_op,
.locals_dict = (mp_obj_dict_t *)&monotonic_time_locals_dict,
};
Is there any documentation or guidance on how I need to refactor my own code to get it to compile and make it work as it used to ?