bestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 17 hours agoThe meaning of thislemmy.mlimagemessage-square53fedilinkarrow-up1437
arrow-up1437imageThe meaning of thislemmy.mlbestelbus22@lemmy.world to Programmer Humor@lemmy.mlEnglish · 17 hours agomessage-square53fedilink
minus-squareWolfLink@sh.itjust.workslinkfedilinkarrow-up31·11 hours agoIn 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.
minus-squarejsomae@lemmy.mllinkfedilinkarrow-up1·3 hours agoLua might have been a better choice, since self is special in lua.
minus-squareSkyNTP@lemmy.mllinkfedilinkarrow-up7·11 hours agoPython is just distancing itself from JS.
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.
Lua might have been a better choice, since
self
is special in lua.Python is just distancing itself from JS.