News for hackers. Stuff that matters.
Re:Why does a = a[0] = [0] create a self-referential list in... by londons_explore on Thursday November 18, 2021 @06:54PM (#29272147)
It's fallout of the fact that assignment must be a statement, and cannot be an expression.

Eg. This is wrong in python, while it would be allowed in c-like languages

    print(a=5)
Re:Why does a = a[0] = [0] create a self-referential list in... by orf on Thursday November 18, 2021 @06:57PM (#29272178)
It’s possible now with the walrus operator though:

    print(a:=5)