List Comprehensions
Ganesh Pal
ganesh1pal at gmail.com
Mon Dec 22 00:42:36 EST 2014
Hi ,
(a) I was trying to reduce the below piece of code using List
comprehension ? Any suggestion please let me know
for opt in options:
opt['result'] = Queue.Queue()
tmp_thread = pause.Thread(opt)
threads.append(tmp_thread)
tmp_thread.start()
(b) * Is there anything that I need to consider while using list
comprehension with threads ?*
Regards,
Ganesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141222/54343e97/attachment.html>
More information about the Python-list
mailing list