0
What is use of self and self.id in python?
2 odpowiedzi
+ 2
self just a pointer to current object, self.id shows you current object’s id ...
+ 1
If you have class and you want to get their attributes you have to use self statement. It is pointer on object which are you using now.