[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.
Benjamin Peterson
report at bugs.python.org
Thu Jun 26 23:10:43 CEST 2008
Benjamin Peterson <musiccomposition at gmail.com> added the comment:
I think it would be better to give a TypeError rather than an
AttributeError for objects that don't support __sizeof__ as per other
special methods.
----------
nosy: +benjamin.peterson
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3122>
_______________________________________
More information about the Python-bugs-list
mailing list