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 chrullrich
Recipients chrullrich, davin, eryksun, ned.deily, paul.moore, pitrou, steve.dower, tim.golden, zach.ware
Date 2019-01-21.18:35:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548095722.14.0.879932946285.issue35797@roundup.psfhosted.org>
In-reply-to
Content
I have two ideas, but no idea if either is remotely feasible:

1. Replicate the launcher's selection logic in multiprocessing and
   avoid the intermediate step via sys.executable. Perhaps put it
   into pythonXX.dll or export it from the launcher executable so
   the C implementation can be shared by both users.

2. Handle the command line argument(s) that control how 
   multiprocessing pulls the handle from the parent process in the
   launcher and perform the operation so the sub-subprocess can in
   turn get it from the launcher.

I had a third one, but it was so crazy I must have preemptively forgotten it.

Finally, I do not think this is a regression in 3.7 (although I have not tested it with anything earlier), but unless the implementation of multiprocessing has changed radically in 3.7 I cannot see how it could have (not) worked any differently before.

On the other hand, venv is essentially the "official" way of installing Python applications these days, so the issue should have a high priority for fixing anyway.
History
Date User Action Args
2019-01-21 18:35:23chrullrichsetrecipients: + chrullrich, paul.moore, pitrou, tim.golden, ned.deily, zach.ware, eryksun, steve.dower, davin
2019-01-21 18:35:22chrullrichsetmessageid: <1548095722.14.0.879932946285.issue35797@roundup.psfhosted.org>
2019-01-21 18:35:22chrullrichlinkissue35797 messages
2019-01-21 18:35:22chrullrichcreate