#NEWLINE# def dict_contents( self , use_dict = None , as_class = dict ) : #NEWLINE# #INDENT# 'Return the contents of an object as a dict.' #NEWLINE# if _debug : #NEWLINE# #INDENT# Any . _debug ( 'dict_contents use_dict=%r as_class=%r' , use_dict , as_class ) #NEWLINE# #UNINDENT# rslt_list = [ ] #NEWLINE# for tag in self . tagList : #NEWLINE# #INDENT# use_dict = as_class ( ) #NEWLINE# use_dict . __setitem__ ( 'class' , tag . tagClass ) #NEWLINE# use_dict . __setitem__ ( 'number' , tag . tagNumber ) #NEWLINE# use_dict . __setitem__ ( 'lvt' , tag . tagLVT ) #NEWLINE# rslt_list = use_dict #NEWLINE# #UNINDENT# return rslt_list