Package topo :: Package misc :: Module asizeof :: Class Asized
[hide private]
[frames] | no frames]

Class Asized

source code


Store the results of an  asized object
in these 4 attributes:

size - total size of the object
flat - flat size of the object
name - name or repr of the object
refs - tuple containing an instance
       of  Asized for each referent

Instance Methods [hide private]
 
__init__(self, size, flat, refs=(), name=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
x.__str__() <==> str(x)
source code
 
format(self, named)
Format name from _NamedRef instance.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  strf = ('%s', '[K] %s', '[V] %s')
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, size, flat, refs=(), name=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
x.__str__() <==> str(x)
Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

strf

tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.

Value:
('%s', '[K] %s', '[V] %s')