When to use "self.objectName" or just "objectName"
Trying to understand when it is needed to prepend object names with self.
Sometimes I am able to reference objects that I have initialized without adding self. and other times my code won't work without adding it.
Can someone explain when I should definitely use the self. reference and when it is not needed?
|