def parse_argv():
    d = {}
    l = []
    for v in sys.argv[1:]:
        if v[:2] == '--':
            try:
                k, v = v[2:].split('=')
                d[k] = v
            except ValueError:
                d[v[2:]] = None
        else:
            l.append(v)
    return d, l
Pass in a callable that returns the object to be wrapped.
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/parse_argv--crossover with--dataset/ETHPy150Open django/django/django/utils/functional.py/SimpleLazyObject.__init__