I\'m using argparse in python to parse commandline arguments:
parser = ArgumentParser() parser.add_argument(\"--a\") parser.add_argument(\"--b\") parser.add_
You can add things to the local scope by calling locals(). It returns a dictionary that represents the currently available scope. You can assign values to it as well - locals()['a'] = 12 will result in a being in the local scope with a value of 12.
locals()
locals()['a'] = 12
a