+ 3

What is self in python programming?

I would understand well the meaning of key word self in python. Thank you in advance.

10th Feb 2018, 1:36 PM
Orazio Sarno
Orazio Sarno - avatar
1 Odpowiedź
+ 3
'self' is a convention in Python to let the classes refer to their instances. It is like 'this' in C++
10th Feb 2018, 2:13 PM
Ulisses Cruz
Ulisses Cruz - avatar