stw <sil...@googlemail.com> added the comment:

> So the tuple is linked-in to the garbage collection list before its
> contents are constructed?

> It is. It typically happens when you do (in C code):

Ok, thanks. I couldn't see how a tuple could be created before its contents in 
python code, but it is clearly possible in C.


I have written up some documentation on how untracking is handled in the gc - 
please see the attached patch. It summarises our discussion and some of the 
posts in issue #4688.

----------
Added file: http://bugs.python.org/file25711/untracking_docs.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14775>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to