Search found 4 matches
- Fri Dec 21, 2018 7:43 am
- Forum: ESP32 boards
- Topic: how to enable DEBUG_printf on esp32
- Replies: 0
- Views: 11355
how to enable DEBUG_printf on esp32
Hi, I find it difficult to enable the DEBUG_printf output of those files under /py. After these macros are set, errors occour like DEBUG_printf not defined in py/malloc.c etc. 378 // The mp_print_t printer used for debugging output 379 #ifndef MICROPY_DEBUG_PRINTER 380 #define MICROPY_DEBUG_PRINTER ...
- Thu Dec 13, 2018 2:56 am
- Forum: General Discussion and Questions
- Topic: inheritance property issue of MicroPython
- Replies: 3
- Views: 2693
Re: inheritance property issue of MicroPython
Hi Peter, It's helpful. Now I know more about the differences between Micropython and CPython. Thanks. I'm wondering if the subclassing of built-in types will be generally supported later, or it is designed so in consideration of constrained environments like less performance and memory ? Sorry, I ...
- Thu Dec 13, 2018 2:42 am
- Forum: General Discussion and Questions
- Topic: inheritance property issue of MicroPython
- Replies: 3
- Views: 2693
Re: inheritance property issue of MicroPython
Hi Peter,
It's helpful. Now I know more about the differences between Micropython and CPython. Thanks.
I'm wondering if the subclassing of built-in types will be generally supported later, or it is designed so in consideration of constrained environments like less performance and memory ?
It's helpful. Now I know more about the differences between Micropython and CPython. Thanks.
I'm wondering if the subclassing of built-in types will be generally supported later, or it is designed so in consideration of constrained environments like less performance and memory ?
- Wed Dec 12, 2018 9:22 am
- Forum: General Discussion and Questions
- Topic: inheritance property issue of MicroPython
- Replies: 3
- Views: 2693
inheritance property issue of MicroPython
Hi everyone, I'm a green hand of MicroPython. While trying to run some code, I found that MicroPython doesn't have the inheritance property of CPython. My code is as follows. >>> class MyInt(int): ... pass ... ... ... >>> a = MyInt(1) >>> b = MyInt(2) >>> a 1 >>> type(a) <class 'MyInt'> >>> print(a+...