On 2/22/2011 4:45 AM, Paddy wrote:
I just noted the example here: http://docs.python.org/dev/whatsnew/3.2.html#pep-3148-the-concurrent-futures-moduleimport concurrent.futures, shutil with concurrent.futures.ThreadPoolExecutor(max_workers=4) as e: e.submit(shutil.copy, 'src1.txt', 'dest1.txt') e.submit(shutil.copy, 'src2.txt', 'dest2.txt') e.submit(shutil.copy, 'src3.txt', 'dest3.txt') e.submit(shutil.copy, 'src3.txt', 'dest4.txt') Should the last line show a copy of src4.txt rather than src3.txt going to dest4.txt?
I assume so. Changed in the repository. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list
