I run a python program with a long argument list (> 20 arguments). Arguments have all a default values (if not overriden by user). At the program's startup, I print the effective argument to have a trace of how the program has been started. Today I print using a dumb routine:
def print_config(args):
print("Configuration:")
print(" shoes: {}".format(args.shoes))
print(" socket: {}".format(args.socket))
[...]
How can I print this using a smart iterator?