#NEWLINE# def appendlist( self , key , value ) : #NEWLINE# #INDENT# 'Appends an item to the internal list associated with key' #NEWLINE# self . setlistdefault ( key , [ ] ) #NEWLINE# dict . __setitem__ ( self , key , ( self . getlist ( key ) + [ value ] ) )