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 josh.r
Recipients josh.r, kieleth
Date 2015-04-18.01:46:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429321620.22.0.73167878956.issue23979@psf.upfronthosting.co.za>
In-reply-to
Content
The Pool workers are created eagerly, not lazily. That is, the fork occurs before map is called, and Python can't know that the objects passed as arguments were inherited in the first place (since they could be created after the Pool was created). If you created worker tasks lazily, then sure, you could fork and use the objects that are inherited, but that's not how Pools work, and they can't work like that if the worker processes process more than one input without eagerly evaluating input sequences (which would introduce other problems).
History
Date User Action Args
2015-04-18 01:47:00josh.rsetrecipients: + josh.r, kieleth
2015-04-18 01:47:00josh.rsetmessageid: <1429321620.22.0.73167878956.issue23979@psf.upfronthosting.co.za>
2015-04-18 01:47:00josh.rlinkissue23979 messages
2015-04-18 01:46:59josh.rcreate