Martin v. Löwis <mar...@v.loewis.de> added the comment:

Interestingly, the original patch did change the sizeof test, but incorrectly 
(adding the extra pointer to the struct spec, but failing to recognize that 
there is additional memory allocated).

This tells me

a) we *absolutely* need to preserve the current testing style where the test 
cases count the individual fields (see issue15402 for the related discussion). 
Had the test used object.__sizeof__, it would not have needed any change to 
continue to pass, losing all hope that somebody might have detected it except 
by very careful review.

b) the trigger that the test broke apparently was not sufficient to hint 
Benjamin that the sizeof implementation may be incorrect, he just assumed that 
the test was incorrect.

----------
nosy: +loewis

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15456>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to