mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
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:
parent
e0f124495b
commit
e3ae655edf
7 changed files with 49 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue