#NEWLINE# def popitem( self ) : #NEWLINE# #INDENT# '\n        Remove and return last item (key, value) duple\n        If odict is empty raise KeyError\n        ' #NEWLINE# try : #NEWLINE# #INDENT# key = self . _keys [ ( - 1 ) ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise KeyError ( 'Empty odict.' ) #NEWLINE# #UNINDENT# value = dict . __getitem__ ( self , key ) #NEWLINE# del self [ key ] #NEWLINE# return ( key , value )