Message162985
| Author |
loewis |
| Recipients |
Arfrever, eli.bendersky, flox, loewis, serhiy.storchaka |
| Date |
2012年06月16日.18:43:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339872226.26.0.921805320506.issue14055@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
__sizeof__ is supposed to account for just the object, not for the size of any object it refers to. If you want to compute total memory consumption, you should get a list of all objects, and then sum up __sizeof__. If some object would also include some of its referents, there would be a danger of accounting some memory twice. |
|