[Python-Dev] PEP 42: sizeof(obj) builtin

Samuele Pedroni pedronis@bluewin.ch
2003年1月31日 13:30:41 +0100


From: "Raymond Hettinger" <raymond.hettinger@verizon.net>
> I'm about to start working on this one and wanted
> to check here first to make sure there is still a 
> demand for it and to get ideas on the best implementation
> strategy.
>> I'm thinking of summing all of the tp_basicsize slots
> while recursing through tp_traverse.

it is very unlikely that we can implement this in Jython,
I would prefer it to be
sys.sizeof
or sys._sizeof
regards.

AltStyle によって変換されたページ (->オリジナル) /