Python Assignment Operator Precedence - (a, b) = a[b] = {}, 5

I saw this Python snippet on Twitter and was quite confused by the output: >>> a, b = a[b] = {}, 5 >>> a {5: ({...}, 5)} What is going on here?