What is the right way to treat Python argparse.Namespace() as a dictionary?
If I want to use the results of argparse.ArgumentParser()
, which is a Namespace
object, with a method that expects a dictionary or mapping-like object (see collections.Mapping), what is the right way to do it?