[issue15320] thread-safety issue in regrtest.main()

Chris Jerdonek report at bugs.python.org
Wed Jul 11 13:17:56 CEST 2012


Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:

I don't think the late binding is necessary. But it looks like late binding could be preserved simply by constructing args_tuple inside the worker thread instead of in the generator. Really, only "test" needs to be yielded. Nothing else varies in the loop.

Is popping from a list thread safe, or were you thinking of another queue?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15320>
_______________________________________


More information about the Python-bugs-list mailing list