In python want to do something like this:
def func(*args, flag):
    do something 
    if cond A:
        flag="some A" 
    else:
        flag="some B"
Then I found the flag passed is always unchanged.
If I change the flag to be a list, then yes it works but is ugly. What is the proper way to achieve the above?
