Re: HELP! How to return the returned value from a threaded function

2015-04-19 Thread D. Xenakis
This worked like a charm. http://code.activestate.com/recipes/84317-easy-threading-with-futures/ -- https://mail.python.org/mailman/listinfo/python-list

Re: HELP! How to return the returned value from a threaded function

2015-04-18 Thread Paul Rubin
D. Xenakis gouzouna...@hotmail.com writes: Maybe this is pretty simple but seems I am stuck... thread_maker() == HelloWorld! This sounds like homework... what have you tried, and what happened? Have you looked at the docs of the threading module? --

Re: HELP! How to return the returned value from a threaded function

2015-04-18 Thread D. Xenakis
This sounds like homework... what have you tried, and what happened? heheh naaah no cheating here. I just provided the example this way to make as clear as possible what I want to do. Return the returned value from a threaded function. apparently this does not work as I hoped: return

HELP! How to return the returned value from a threaded function

2015-04-18 Thread D. Xenakis
Maybe this is pretty simple but seems I am stuck... def message_function(): return HelloWorld! def thread_maker(): call message_function() using a new thread and return it's HelloWorld! pass Could someone please complete above script so that: thread_maker() ==

Re: HELP! How to return the returned value from a threaded function

2015-04-18 Thread MRAB
On 2015-04-18 18:50, D. Xenakis wrote: This sounds like homework... what have you tried, and what happened? heheh naaah no cheating here. I just provided the example this way to make as clear as possible what I want to do. Return the returned value from a threaded function. apparently this

Re: HELP! How to return the returned value from a threaded function

2015-04-18 Thread Dave Angel
On 04/18/2015 01:07 PM, D. Xenakis wrote: Maybe this is pretty simple but seems I am stuck... def message_function(): return HelloWorld! def thread_maker(): call message_function() using a new thread and return it's HelloWorld! pass Could someone please

Re: HELP! How to return the returned value from a threaded function

2015-04-18 Thread Paul Rubin
D. Xenakis gouzouna...@hotmail.com writes: Have you looked at the docs of the threading module? Lost in there You should probably read a book about operating systems to get a sense of how the stuff in there works. The software docs assume you're familiar with the basic principles that you