Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I suggest that when using lib2to3 as a library, multiprocessing is not enabled by default; there may be uses of the library that are incompatible with multiprocessing.
It may be enabled by default when using it from the command line (or the lib2to3.main module). But which default number of processes would this use? Concerning the patch itself: - the line "from processing import Process" seems suspect. - Did you consider using something as simple as: pool = multiprocessing.Pool(self.options.num_processes) pool.map(self.refactor_file, fullnames) It should do all the job: start processes, queue tasks, wait for results. ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3448> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com