def parse_args(arguments):
    """Take a string of arguments and keyword arguments and convert back to
    objects.
    """
    # Try a possibly icky method of constructing a temporary function string
    # and exec it (leverage Python parser and argument handling).
    ANY = None # To allow "ANY" keyword in prereq spec.
    def _ArgGetter(*args, **kwargs):
        return args, kwargs
    funcstr = "args, kwargs = _ArgGetter(%s)\n" % arguments
    exec funcstr in locals()
    return args, kwargs # set by exec call
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/core.py/parse_args/original