On Sun, Dec 12, 2010 at 12:36 PM, Brian Quinlan <br...@sweetapp.com> wrote: > > On Dec 11, 2010, at 6:33 PM, Nick Coghlan wrote: > >> On Sun, Dec 12, 2010 at 6:53 AM, Brian Quinlan <br...@sweetapp.com> wrote: >>> >>> Is it still unclear why it is there? Maybe you could propose some >>> additional >>> documentation. >> >> Did you get my question the other day as to whether a >> weakref.WeakKeySet might be a better choice? I believe you would be >> able to get rid of the periodic sweep for dead references if you did >> that, and I didn't spot any obvious downsides. > > No I didn't, sorry! Could you resent it if it has more details then the > paragraph above?
There wasn't much more detail, as there actually isn't a great deal to the idea. This was the main comment in the previous email: "It seems to me that using WeakSet would mean you could get rid of _remove_dead_thread_references altogether (the implicit callbacks would handle that part), and then a set() call in _python_exit would give you concrete references to work with for cleanup purposes." Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com