Message198089
| Author |
pitrou |
| Recipients |
amaury.forgeotdarc, loewis, pitrou, rhettinger, serhiy.storchaka |
| Date |
2013年09月19日.15:56:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<768471873.4605637.1379606163930.JavaMail.root@zimbra10-e2.priv.proxad.net> |
| In-reply-to |
<1379605637.18.0.66872320824.issue19048@psf.upfronthosting.co.za> |
| Content |
> I like the definition of __sizeof__ that was discussed some time ago:
> http://bugs.python.org/issue14520#msg157798
The problem is that that definition isn't helpful.
If we ever change itertools.tee to use non-PyObjects internally, suddenly
its sys.getsizeof() would have to return much larger numbers despite
visible behaviour not having changed at all (and despite the memory
overhead being actually lower).
And gc.get_referents() is really a low-level debugging tool, certainly
not a "reflection API" (inspect would serve that role). |
|