def x(*a, b=1)
is valid syntax on python3, but invalid on python2.
I know below work on python2
def x(*a, **kwargs):
b=kwargs.get('b', 1)
But I just wonder if there any syntax patch can make python 2 compatible with def x(*a, b=1)
?
So that I don't need change all my code.