this post was submitted on 08 Jun 2025
418 points (97.5% liked)

Programmer Humor

36253 readers
1049 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] WolfLink@sh.itjust.works 31 points 11 hours ago (2 children)

In Python, self is not a keyword, it’s a conventional variable name. You can replace all instances of “self” with “this” and your code will work the same.

[–] jsomae@lemmy.ml 1 points 3 hours ago

Lua might have been a better choice, since self is special in lua.

[–] SkyNTP@lemmy.ml 7 points 11 hours ago

Python is just distancing itself from JS.