def get_args(func):
    args, varargs, keywords, defaults = inspect.getargspec(func)

    defaults = list(reversed(defaults)) if defaults is not None else []
    args = list(reversed(args))

    while len(defaults) != len(args):
        defaults+=(None,)

    return dict(zip(args, defaults))
Writes out some information about a pack file.
dataset/ETHPy150Open NervanaSystems/neon/neon/__init__.py/get_args--crossover with--dataset/ETHPy150Open ViDA-NYU/reprozip/reprounzip/reprounzip/pack_info.py/print_info