Author schuppenies
Recipients amaury.forgeotdarc, benjamin.peterson, facundobatista, schuppenies
Date 2008-07-03.13:31:45
SpamBayes Score 0.0619345
Marked as misclassified No
Message-id <>
I was testing your patch and it turns out, that it will ignore
any __sizeof__ attribute which may be available through getattr. I
adapted it a bit, so now getsizeof will try to call the method on the
passed object first, and if it fails or the object is a type, the code
proposed by you will be executed. This also deals with old-style class
instances. The match_sizeof function in the patch is just to showcase
the example. What do you think?
Date User Action Args
2008-07-03 13:31:49schuppeniessetspambayes_score: 0.0619345 -> 0.0619345
recipients: + schuppenies, facundobatista, amaury.forgeotdarc, benjamin.peterson
2008-07-03 13:31:49schuppeniessetspambayes_score: 0.0619345 -> 0.0619345
messageid: <>
2008-07-03 13:31:48schuppenieslinkissue3122 messages
2008-07-03 13:31:48schuppeniescreate