This is really a few questions:
Is there a reason argparse uses a namespace instead of a dictionary?
Assuming I have a class with
__init__(self, init_method, *args)
. Theinit_method
parameter tells the init_function which way I want to initialize the class, whilearg
parameter gives all the arguments neccesary for the init. The arguments may be different for different methods. Should I use a dictionary, or a namespace?Assuming that I use a namespace, how do I pass the namespace to
__init__()
?
No comments:
Post a Comment