Re: submit jobs on multi-core

2012-09-11 Thread zig-zag
On 09/11/2012 07:53 AM, Laszlo Nagy wrote:
> On 2012-09-11 06:16, Dhananjay wrote:
>> Dear all,
>>
>> I have a python script in which I have a list of files to input one by
>> one and for each file I get a number as an output.
>> I used for loop to submit the file to script.
>> My script uses one file at a time and returns the output.
>>
>> My computers has 8 cores.
>> Is there any way that I could submit 8 jobs at a time and get all the
>> output faster ?
>> In other words, how can I modify my script so that I could submit 8
>> jobs together on 8 different processors ?
>>
>> I am bit new to this stuff, please suggest me some directions.
> You should first look at the multiprocessing module. It is part of the
> standard library.
> 
> http://docs.python.org/library/multiprocessing.html
> 
> 
Did anybody tried this on a cluster?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python source code easy to hack?

2012-09-28 Thread zig-zag

On 09/28/2012 02:17 PM, Mark Lawrence wrote:

On 28/09/2012 12:57, Jayden wrote:

Dear All,

I have a concern in developing commercial code with Python. Someone
told me that its program can be easily hacked to get its source code.
Is it really the case? Any way to protect your source code?

Thanks a lot!

Jayden



This question has been asked on numerous occasions so if you search the
archives you're sure to get loads of answers.



http://stackoverflow.com/questions/261638/how-do-i-protect-python-code
http://stackoverflow.com/questions/164137/how-do-i-deploy-a-python-desktop-application
--
http://mail.python.org/mailman/listinfo/python-list