def pop(self, key, *args):
            if len(args) > 1:
                raise TypeError, "pop expected at most 2 arguments, got "\
                                  + repr(1 + len(args))
            try:
                value = self[key]
            except __HOLE__:
                if args:
                    return args[0]
                raise
            del self[key]
            return value
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webob_0_9/webob/util/dictmixin.py/DictMixin.pop