When following a python2 tutorial, it often defines functions like this:
def scale(self, (centre_x, centre_y), scale):
which throws a SyntaxError in python3, highlighting the parenthesis in front of "centre_x". I also notice that you cannot use parentheses to group, say like this:
def test(x, (y + 1)):
What am I missing?
This was a supported syntax in Python 2.x but it was removed in Python 3.0.
See PEP 3113 – Removal of Tuple Parameter Unpacking for detail.