I have a function, which should have one optional parameter. I want the optional parameter to be the same as other parameter. Something like this:
def foo(arg1, arg2, src, dst=src):
...
...
Parameter dst is the optional one. The thing is when dst is not given when calling foo, it should be same as src.
Any ideas?
Thank you