Design thought for callbacks
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sat Feb 21 21:04:11 EST 2015
More information about the Python-list mailing list
Sat Feb 21 21:04:11 EST 2015
- Previous message (by thread): Design thought for callbacks
- Next message (by thread): Design thought for callbacks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Marko Rauhamaa wrote: > Grant Edwards <invalid at invalid.invalid>: > >> the polite thing to do is to delete references to it when you're done >> with it. > > I disagree with that recommendation. You should do the natural thing and > not care who holds references to who. I don't understand this. What is "the natural thing" if not to delete references to an object when you are done with it? Normally you just let things go out of scope, but if that won't happen, you have to take active steps, such as calling del or setting the reference to None. -- Steven
- Previous message (by thread): Design thought for callbacks
- Next message (by thread): Design thought for callbacks
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list