Hier vind je misschien wat nuttige informatie:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/419eafde7b89c434/82bb48b271d949e4?lnk=gst&q=size&rnum=8&hl=nl#82bb48b271d949e4

Vooral deze bijdrage van Lenard Lindstrom:
"New-style classes have both a __basicsize__ and an __itemsize__
attribute. __basicsize__ gives the number of bytes in the fixed size
portion of an instance. For immutable types with variable size, such as
tuple and str, multiply __itemsize__ by the object length and add to
__basicsize__ to get the instance size. long type instances also vary in
length, but since long has no length property trying to figure out the
size of a particular instance is harder. And types like list, map and
unicode keep pointers to blocks of memory allocated separately."

Succes,
Stani
--
http://pythonide.stani.be

Robert-Reinder Nederhoed schreef:
> Goedemiddag,
> 
> 
> Is er een eenvoudige manier om de grootte van een object te bepalen?
> 
> Ik zou graag instanties van verschillende classes willen vergelijken
> op geheugengebruik.
> 
> 
> Vriendelijke groet, Robert-Reinder
> 
> --
> _______________________________________________
> Python-nl mailing list
> Python-nl@python.org
> http://mail.python.org/mailman/listinfo/python-nl
> 


_______________________________________________
Python-nl mailing list
Python-nl@python.org
http://mail.python.org/mailman/listinfo/python-nl

Antwoord per e-mail aan