News for hackers. Stuff that matters.
Re:Self Hell in Python by anindyabd on Sunday January 04, 2015 @12:14PM (#8835030)
Did not know this. Thought self was equivalent to this in Java. Mind = blown.
Re:Self Hell in Python by raverbashing on Sunday January 04, 2015 @12:53PM (#8835160)
See, you pass it as a parameter

So it can be called anything you want

BUT DON'T DO IT! Because you'll break the convention and anyone who maintains your code after that will hate you.

Re:Self Hell in Python by eatonphil on Sunday January 04, 2015 @02:20PM (#8835451)
You can ALSO declare a class member function in a different file. Since it just accepts self as the first parameter... It still works.