code: def dict_contents(self, use_dict=None, as_class=dict):
          
          if _debug: Any._debug("dict_contents use_dict=%r as_class=%r", use_dict, as_class)
  
          # result will be a list
          rslt_list = []
  
          # loop through the tags
          for tag in self.tagList:
              # build a tag thing
              use_dict = as_class()
  
              # save the pieces
              use_dict.__setitem__('class', tag.tagClass)
              use_dict.__setitem__('number', tag.tagNumber)
              use_dict.__setitem__('lvt', tag.tagLVT)
  
              ### use_dict.__setitem__('data', '.'.join('%02X' % ord(c) for c in tag.tagData))
  
              # add it to the list
              rslt_list = use_dict
  
          # return what we built
          return rslt_list
docs: Return the contents of an object as a dict.