🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

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

    Micropython
    1
    1
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      slow-moose
      last edited by

      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)
      1 Reply Last reply Reply Quote 0
      • First post
        Last post