Message166439
sys.getsizeof() is not for production code, it's for experimenting and getting information at the command prompt. It's quite useful when you know its limitations.
I'd argue that implementing __sizeof__ for user types doesn't make much sense (except C extension types, which are CPython-specific). |
|
Date |
User |
Action |
Args |
2012-07-25 23:05:31 | pitrou | set | recipients:
+ pitrou, rhettinger, jcea, meador.inge, docs@python, eric.snow, serhiy.storchaka |
2012-07-25 23:05:31 | pitrou | set | messageid: <1343257531.93.0.571099850008.issue15436@psf.upfronthosting.co.za> |
2012-07-25 23:05:31 | pitrou | link | issue15436 messages |
2012-07-25 23:05:31 | pitrou | create | |
|