code: def _len_dict(obj):
      '''Dict length in items (estimate).
      '''
      n = len(obj)  # active items
      if n < 6:  # ma_smalltable ...
         n = 0  # ... in basicsize
      else:  # at least one unused
         n = _power2(n + 1)
      return f _len_dict(obj):
      '''Dict length in items (estimate).
      '''
      n = len(obj)  # active items
      if n < 6:  # ma_smalltable ...
         n = 0  # ... in basicsize
      else:  # at least one unused
         n = _power2(n + 1)
      return n
docs: Dict length in items (estimate).