Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Mark, There are 3 semicolons missing in your patch, in pipe_connection.c, just after the calls to WriteFile and ReadFile. After this, it compiles and runs correctly. Tests pass.
Note that on Windows, your "nine lines" cannot work as is, because the processes are spawned, not forked: the sqr() function is not copied. And if you save the lines in a script file, it will be imported by every subprocess, and every subprocess will start its own manager... and memory explodes. import multiprocessing.managers def sqr(x): return x*x if __name__ == '__main__': manager = multiprocessing.managers.SyncManager() manager.start() pool = manager.Pool(4) it = pool.imap_unordered(sqr, range(1000)) assert sorted(it) == [sqr(x) for x in range(1000)] pool.terminate() manager.shutdown() _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3399> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com