News for hackers. Stuff that matters.
Re:OO in Python is mostly pointless by gorgoiler on Wednesday January 27, 2021 @05:35PM (#25935076)
You spelled it wrong!

Ruby’s approach is the most delightful, I find. elf is an instance of Elf and in elf.health, self is the elf.

Elf is an instance of Class and in Elf.surpass, self is the Elf class itself.

Re:OO in Python is mostly pointless by rbanffy on Wednesday January 27, 2021 @06:09PM (#25935436)
Ruby's irregular syntax drives me crazy. But it is beautiful.
Re:OO in Python is mostly pointless by staticautomatic on Wednesday January 27, 2021 @11:32PM (#25938210)
I gotta say as a Python developer I kinda like this compared to thing = Thing()