Message206430
Implementing this is actually likely to require non-trivial restructuring of the runpy internals. contextlib.ExitStack may prove useful in making it easier to programmatically select amongst different context managers.
The __mp_main__ helpers in multiprocessing should also be able to take advantage of this once it is available, and it may prove useful in finally providing -m analogues for pdb etc that play nice when an exception occurs (see issue 9325). |
|
Date |
User |
Action |
Args |
2013-12-17 12:48:44 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, eric.snow |
2013-12-17 12:48:44 | ncoghlan | set | messageid: <1387284524.75.0.387301324749.issue19982@psf.upfronthosting.co.za> |
2013-12-17 12:48:44 | ncoghlan | link | issue19982 messages |
2013-12-17 12:48:44 | ncoghlan | create | |
|