Message198114
| Author |
pitrou |
| Recipients |
amaury.forgeotdarc, loewis, pitrou, rhettinger, serhiy.storchaka |
| Date |
2013年09月19日.18:45:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1379616354.2511.27.camel@fsol> |
| In-reply-to |
<1379616247.92.0.34627910106.issue19048@psf.upfronthosting.co.za> |
| Content |
> Optionally we can also not count objects which are referenced from
> outside of a graph of objects (this isn't so easy implement in
> Python). I.e. gettotalsizeof([1, 'abc', math.sqrt(22)], inner=True)
> will count only bare list and a square of 22, because 1 and 'abc' are
> interned.
That's only part of the equation. What if I have an object which
references, for example, a logging.Logger? Loggers are actually eternal
(they live in a global dictionary somewhere in the logging module), but
gettotalsizeof() will still count it. |
|