Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Design thought for callbacks Date: Thu, 26 Feb 2015 18:36:17 +1300 Lines: 9 Message-ID: References: <33677AE8-B2FA-49F9-9304-C8D93784255D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net /FTU3d7kI0nEpUXJlQ+INwbMaLXptWMDuLs9zrjj8asT8NOtGk Cancel-Lock: sha1:XLjPl220+zVGaJHLc5POmSJcdVM= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:86475 Cem Karan wrote: > I think I see what you're talking about now. Does WeakMethod > (https://docs.python.org/3/library/weakref.html#weakref.WeakMethod) solve > this problem? Yes, that looks like it would work. -- Greg