Message166517
> Note that object.__sizeof__ does something slightly different, though:
> it uses basicsize (which may or may not contain the sizeof() invocation
> of the correct C structure), and it considers tp_itemsize (which may or
> may not have a correct value).
All such cases are bugs (memory manager works with tp_basicsize and
tp_itemsize, not with __sizeof__ result) and tests do not test it. In
paranoidal mode we should tests both __sizeof__ and object.__sizeof__. For all
classes, even for those that do not use the extra memory. I think it is really
tedious. |
|
Date |
User |
Action |
Args |
2012-07-26 20:29:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, gregory.p.smith, jcea, mark.dickinson, asvetlov, skrah, meador.inge |
2012-07-26 20:29:21 | serhiy.storchaka | link | issue15402 messages |
2012-07-26 20:29:21 | serhiy.storchaka | create | |
|