[issue3122] sys.getsizeof() gives an AttributeError for _sre objects.
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
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list