Message74437
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. |
|
Date |
User |
Action |
Args |
2008-10-07 11:38:44 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, collinwinter, pitrou, benjamin.peterson, nedds |
2008-10-07 11:38:44 | amaury.forgeotdarc | set | messageid: <1223379524.12.0.700209017883.issue3448@psf.upfronthosting.co.za> |
2008-10-07 11:38:43 | amaury.forgeotdarc | link | issue3448 messages |
2008-10-07 11:38:42 | amaury.forgeotdarc | create | |
|