Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
self.object
#3
(Jan-28-2018, 06:20 PM)Mekire Wrote: If there is no need to use it elsewhere however it shouldn't be a class attribute
Sometimes it is necessary to keep a reference to an object, even if it is not used elsewhere. I don't know if this is the case here, but in python an instance exists only when there is at least one reference to this instance.
Reply


Messages In This Thread
self.object - by nengkya - Jan-28-2018, 05:58 PM
RE: self.object - by Mekire - Jan-28-2018, 06:20 PM
RE: self.object - by Gribouillis - Jan-28-2018, 06:59 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020