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 ncoghlan
Recipients brett.cannon, eric.snow, ncoghlan
Date 2013-12-17.12:48:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387284524.75.0.387301324749.issue19982@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2013-12-17 12:48:44ncoghlansetrecipients: + ncoghlan, brett.cannon, eric.snow
2013-12-17 12:48:44ncoghlansetmessageid: <1387284524.75.0.387301324749.issue19982@psf.upfronthosting.co.za>
2013-12-17 12:48:44ncoghlanlinkissue19982 messages
2013-12-17 12:48:44ncoghlancreate