New submission from Chris Jerdonek <chris.jerdo...@gmail.com>: My understanding is that generators are not thread-safe. For example, see
http://stackoverflow.com/a/1131458/262819 However, regrtest.main() seems to access a generator from multiple threads when run in multiprocess mode: def work(): # A worker thread. try: while True: try: test, args_tuple = next(pending) except StopIteration: output.put((None, None, None, None)) return http://hg.python.org/cpython/file/2ecdda96f970/Lib/test/regrtest.py#l632 ---------- components: Tests keywords: easy messages: 165203 nosy: cjerdonek priority: normal severity: normal status: open title: thread-safety issue in regrtest.main() versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15320> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com