Make bin() implementation parallel oct() and hex() so that int/long subclasses can override or so that other classes can support.

This commit is contained in:
Raymond Hettinger 2008-06-20 04:18:15 +00:00
parent e0f124495b
commit e3ae655edf
7 changed files with 49 additions and 2 deletions

View file

@ -523,7 +523,7 @@ class SizeofTest(unittest.TestCase):
len_typeobject = p + 2*l + 15*p + l + 4*p + l + 9*p +\
l + 11*p + self.align(4)
self.check_sizeof(class_newstyle,
h + len_typeobject + 41*p + 10*p + 3*p + 6*p)
h + len_typeobject + 42*p + 10*p + 3*p + 6*p)
def test_specialtypes(self):
i = self.i