Enter max('', *[], key=len) and execute it. Now go back in the history (arrow up), change *[] to '2' and execute it again. Notice how it executes the correct code, but the line changes back to max('', *[], key=len).
A git bisect say that the issue was introduced in 648d0b2.