How can I get access to my_args list data type in __main__?
test1.py
#!/usr/bin/env python
def main():
print 'main function'
one()
def one():
print 'one function'
my_args = ["QA-65"]
def two():
print 'two function'
if __name__ == "__main__":
main()
getattr(my_args, pop)
You can if you
returnthem fromone():Outputs: