python sizeof ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ajikoe@gmail.com

    #1

    python sizeof ?

    Hello,

    How can I get the size of an object in python..?
    analog with c sizeof?

    Pujo

  • Fredrik Lundh

    #2
    Re: python sizeof ?

    "ajikoe@gmail.c om"
    [color=blue]
    > How can I get the size of an object in python..?[/color]

    you can't, and the size in bytes is mostly meaningless.

    if you're looking for the size of a serialized/marshalled python
    object, use len().
    [color=blue]
    > analog with c sizeof?[/color]

    Python's not C. for more discussion, see:



    </F>



    Comment

    Working...