def pop(self, *args):
        if len(args) > 2:
            raise TypeError, 'pop expected at most 2 arguments, got %d' % len(args)
        elif len(args) < 1:
            raise TypeError, 'pop expected at least 1 arguments, got %d' % len(args)

        if args[0] not in self.keys():
            try:
                return args[1]
            except __HOLE__:
                raise KeyError, args[0]

        cmds.fileInfo( rm=args[0])
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/system.py/FileInfo.pop