How can I check the byte size of an Object in micropython?



  • I want to see how large an object is. But what I tried does not seem to work. It does not print anything.

    import sys
    
    lcd.print(sys.getsizeof('this'), 0, 50, 0x000099)