[Python-checkins] r61011 - in python/trunk/Lib: test/test_threading.py threading.py

A.M. Kuchling amk at amk.ca
Sat Feb 23 21:03:10 CET 2008


On Sat, Feb 23, 2008 at 08:40:54PM +0100, jeffrey.yasskin wrote:
> if self.__target:
> self.__target(*self.__args, **self.__kwargs)
> + # Avoid a refcycle if the thread is running a function with an
> + # argument that has a member that points to the thread.
> + del self.__target, self.__args, self.__kwargs

Should the 'del' statement be in a 'finally:' block so that the 
attributes are deleted even if __target raises an exception?
--amk


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /