New submission from Tomer: Hi, In multiprocessing.dummy module I noticed when you send a zero-length iterator to pool.map it hang forever,
Code example: import urllib2 from multiprocessing.dummy import Pool as ThreadPool def start_multithreading_urlopen(threads_num): pool = ThreadPool(threads_num) results = pool.map(urllib2.urlopen, []) pool.close() pool.join() # hang here print results I think it related to Issue6433 that was fixed on multiprocessing module with simple length check ---------- components: Library (Lib) messages: 254844 nosy: tomer70 priority: normal severity: normal status: open title: multiprocessing.dummy: pool.map hangs on empty list type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25656> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com