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 davin
Recipients Stanislaw Izaak Pitucha, davin
Date 2015-09-10.17:09:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441904995.2.0.32043483109.issue25053@psf.upfronthosting.co.za>
In-reply-to
Content
I have been able to reproduce the behavior you described under 3.5 under one set of circumstances so far.

When attempting to use classes/functions/other not defined in an importable module, an AttributeError is expected as you observed.  The viability of that existing Pool to perform further useful work has been compromised and no promises are made regarding its continued behavior.

In general, the recommendations in https://docs.python.org/3.4/library/multiprocessing.html#multiprocessing-programming hold to avoid these situations.

Understanding the exact set of circumstances to provoke situations where viable work can continue with a locally-defined (not in an importable module) function/class is perhaps worth further investigation.

That said, multiple places in the multiprocessing docs (including the introductory paragraphs) provide the guidance to always use functions/classes whose definitions are importable.  Hence, I'm inclined to mark this mentally as "interesting" but on the bug tracker as "not a bug".  Any objections?
History
Date User Action Args
2015-09-10 17:09:55davinsetrecipients: + davin, Stanislaw Izaak Pitucha
2015-09-10 17:09:55davinsetmessageid: <1441904995.2.0.32043483109.issue25053@psf.upfronthosting.co.za>
2015-09-10 17:09:55davinlinkissue25053 messages
2015-09-10 17:09:55davincreate