#NEWLINE# def pop( self , key , default = __marker ) : #NEWLINE# #INDENT# 'D.pop(k[,d]) -> v, remove specified key and return the value.\n\n        If key is not found, d is returned if given, otherwise KeyError is\n        raised.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# value = self [ key ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# if ( default is self . __marker ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# return default #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# del self [ key ] #NEWLINE# return value