def test_typedefs(self): # remove? '''Test showing all basic _typedefs''' t = len(asizeof._typedefs) w = len(str(t)) * ' ' self._printf('%s%d type definitions: basic- and itemsize (leng), kind ... %s', os.linesep, t, '-type[def]s') for k, v in sorted((asizeof._prepr(k), v) for k, v in asizeof._items(asizeof._typedefs)): s = '%(base)s and %(item)s%(leng)s, %(kind)s%(code)s' % v.format() self._printf('%s %s: %s', w, k, s)
def test_typedefs(self): # remove? '''Test showing all basic _typedefs''' t = len(asizeof._typedefs) w = len(str(t)) * ' ' self._printf('%s%d type definitions: basic- and itemsize (leng), kind ... %s', os.linesep, t, '-type[def]s') for k, v in sorted((asizeof._prepr(k), v) for k, v in asizeof._items(asizeof._typedefs)): s = '%(base)s and %(item)s%(leng)s, %(kind)s%(code)s' % v.format() self._printf('%s %s: %s', w, k, s)