Message334164
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. |
|
Date |
User |
Action |
Args |
2019-01-21 18:35:23 | chrullrich | set | recipients:
+ chrullrich, paul.moore, pitrou, tim.golden, ned.deily, zach.ware, eryksun, steve.dower, davin |
2019-01-21 18:35:22 | chrullrich | set | messageid: <1548095722.14.0.879932946285.issue35797@roundup.psfhosted.org> |
2019-01-21 18:35:22 | chrullrich | link | issue35797 messages |
2019-01-21 18:35:22 | chrullrich | create | |
|