This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author schuppenies
Recipients benjamin.peterson, facundobatista, schuppenies
Date 2008-06-26.21:40:51
SpamBayes Score 0.019021403
Marked as misclassified No
Message-id <1214516453.08.0.427762313202.issue3122@psf.upfronthosting.co.za>
In-reply-to
Content
The attribute error is caused by pattern_getattr, which tries to find
__sizeof__, fails and then sets the error message. I don't know if
casting the error is the right thing to do. Actually, sys.getsizeof()
should work on any type.

Another suggestion was a that sys.getsizeof allows one optional
argument for a default size. If the default argument is provided,
sys.getsizeof will not throw an exception (if the __sizeof__ method is
missing or for any other error), but instead return the given default
size.
Still, an agreement on the right error message is needed.
History
Date User Action Args
2008-06-26 21:40:53schuppeniessetspambayes_score: 0.0190214 -> 0.019021403
recipients: + schuppenies, facundobatista, benjamin.peterson
2008-06-26 21:40:53schuppeniessetspambayes_score: 0.0190214 -> 0.0190214
messageid: <1214516453.08.0.427762313202.issue3122@psf.upfronthosting.co.za>
2008-06-26 21:40:52schuppenieslinkissue3122 messages
2008-06-26 21:40:51schuppeniescreate