python sizeof()?
Preston Landers
prestonlanders at my-deja.com
Mon Dec 20 17:23:02 EST 1999
This may be a silly question, but is there an equivelent to C's
sizeof() operator? I scanned the docs, and did a search on Deja.com,
but I could find nothing relevant.
Ideally sizeof(foo) would return the number of bytes required to store
the instance of foo. I guess if foo were callable, then it would return
the size of the associated Python bytecode.
thanks,
---Preston
--
|| Preston Landers <prestonlanders at my-deja.com> ||
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list