I found to detect if an object is GCed is very hard within python.

For example, I write an C extension with two object Parent and Child, they referenced each other as member, so circular referenced, how to use Python unittest to detect that? 2012/4/7, Alec Taylor <alec.taylor6@gmail.com>:
-- 从我的移动设备发送 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Hello. We are sorry but we cannot help you. This mailing list is to discuss new Python ideas; if you're having problems learning, understanding or using Python, please find another forum. Probably python-list/comp.lang.python mailing list/news group is the best place; there are Python developers who participate in it; you may get a faster, and probably more complete, answer there. See http://www.python.org/community/ for other lists/news groups/fora. Thank you for understanding. On Sun, Apr 08, 2012 at 03:39:56PM +0800, "?????????(Yonggang Luo) " <luoyonggang@gmail.com> wrote:
I think, a weak reference with a callback can help. Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.

Hello. We are sorry but we cannot help you. This mailing list is to discuss new Python ideas; if you're having problems learning, understanding or using Python, please find another forum. Probably python-list/comp.lang.python mailing list/news group is the best place; there are Python developers who participate in it; you may get a faster, and probably more complete, answer there. See http://www.python.org/community/ for other lists/news groups/fora. Thank you for understanding. On Sun, Apr 08, 2012 at 03:39:56PM +0800, "?????????(Yonggang Luo) " <luoyonggang@gmail.com> wrote:
I think, a weak reference with a callback can help. Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Oleg Broytman
-
罗勇刚(Yonggang Luo)