News for hackers. Stuff that matters.
Re:WTFPython: Exploring and understanding Python through sur... by dotancohen on Tuesday May 31, 2022 @06:26AM (#31567872)
In Python 3.8 the tuple is in fact changed:

  >>> print(obj.a, obj.b)
  (1, 2) [1, 2]
Re:WTFPython: Exploring and understanding Python through sur... by Diggsey on Tuesday May 31, 2022 @06:48AM (#31568040)
What happens to `obj.a`/`obj.b` is not the point of the example, you should be looking at `A.a`/`A.b`.
Re:WTFPython: Exploring and understanding Python through sur... by hoseja on Tuesday May 31, 2022 @07:31AM (#31568324)
Is that like a static member? Truly, dynamic languages are God's curse upon the Earth.
Re:WTFPython: Exploring and understanding Python through sur... by digisign on Tuesday May 31, 2022 @01:22PM (#31572209)
It refers to the class, not the instance.