Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82787
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: List Comprehensions |
| Date | 2014-12-22 16:34 +0000 |
| References | <CACT3xuWVZPqEZ-hQ6QS7QTnpuBG3FXvVuc=wVN5PLLM7FPrscQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17124.1419266062.18130.python-list@python.org> (permalink) |
On 22/12/2014 05:42, Ganesh Pal wrote: > 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() > If it ain't broke don't fix it :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: List Comprehensions Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 16:34 +0000
csiph-web