#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# with key . lock : #NEWLINE# #INDENT# item = self . _container . pop ( key ) #NEWLINE# self . _container [ key ] = item #NEWLINE# return item