Top "Self" questions

A keyword used in instance methods to refer to the object on which they are working.

Python - self, no self and cls

Yet another question on what the 'self' is for, what happens if you don't use 'self' and what's 'cls' for. …

python class object self
Difference between Python self and Java this

I had done a bit of Python long back. I am however moving over to Java now. I wanted to …

java python this self
What is "self" used for in Swift?

I am new to Swift and I'm wondering what self is used for and why. I have seen it in …

ios swift self
How to use Ruby's self keyword

From what I understand about self, it refers to the current instance of the class. Isn't this the default behaviour …

ruby instance self
How to avoid explicit 'self' in Python?

I have been learning Python by following some pygame tutorials. Therein I found extensive use of the keyword self, and …

python self
When do you use 'self' in Python?

Are you supposed to use self when referencing a member function in Python (within the same module)? More generally, I …

python self
how to use a Python function with keyword "self" in arguments

i have a function that retrieve a list of stores in Python this functions is called : class LeclercScraper(BaseScraper): """ This …

python self
Calling [self methodName] from inside a block?

I've just run into blocks and I think they are just what I'm looking for, except for one thing: is …

objective-c self objective-c-blocks
What is the purpose of checking self.__class__ ? - python

What is the purpose of checking self.__class__ ? I've found some code that creates an abstract interface class and then …

python class oop interface self
Swift Error: Ambiguous reference to member 'subscript'

I'm new to coding and picked up some open source project to get the idea. I'm getting the error: Ambiguous …

swift member self subscript let