This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Julien Verger
Recipients Julien Verger
Date 2017-06-04.06:54:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496559266.31.0.239393976491.issue30563@psf.upfronthosting.co.za>
In-reply-to
Content
Hello,

i'm trying to use the sample code that is documented here: https://docs.python.org/2/library/multiprocessing.html
from multiprocessing import Pool

def f(x):
    return x*x

if __name__ == '__main__':
    p = Pool(5)
    print(p.map(f, [1, 2, 3]))

This code behaves differently depending on the python version that i use.
I use 2 versions of python interpreter, first on my windows 7 OS and second in cygwin.
The code behaves normaly when i execute it on windows python version, but nothing seems to happen when i use python interpreter from cygwin.
Other objects than 'pool' seems to be impacted but this short exemple helps me to show how to reproduce quickly my issue.

Here are somme informations on the python versions that i'm using:
On the windows side:
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.                          

On the cygwin side:
Python 2.7.13 (default, Mar 13 2017, 20:56:15)                           
[GCC 5.4.0] on cygwin                                                    
Type "help", "copyright", "credits" or "license" for more information.

Please help

Regards
History
Date User Action Args
2017-06-04 06:54:26Julien Vergersetrecipients: + Julien Verger
2017-06-04 06:54:26Julien Vergersetmessageid: <1496559266.31.0.239393976491.issue30563@psf.upfronthosting.co.za>
2017-06-04 06:54:26Julien Vergerlinkissue30563 messages
2017-06-04 06:54:25Julien Vergercreate