Author mitar
Recipients David.Layton, Paolo.Elvati, Stefan.Pfeiffer, bethard, eric.araujo, josh.r, manveru, mitar, paul.j3, remi.lapeyre
Date 2019-05-08.05:58:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557295135.23.0.268547600424.issue13824@roundup.psfhosted.org>
In-reply-to
Content
>  So it's already possible to do what you describe, simply by doing:

I think there is an edge case here if a stdin/stdout is opened? It would get closed at exist from the context, no?

So I suggest that a slight extension of what open otherwise returns is returned which make sure context manager applies only to non-stdin/stdout handles.
History
Date User Action Args
2019-05-08 05:58:55mitarsetrecipients: + mitar, bethard, eric.araujo, Paolo.Elvati, manveru, Stefan.Pfeiffer, paul.j3, David.Layton, josh.r, remi.lapeyre
2019-05-08 05:58:55mitarsetmessageid: <1557295135.23.0.268547600424.issue13824@roundup.psfhosted.org>
2019-05-08 05:58:55mitarlinkissue13824 messages
2019-05-08 05:58:55mitarcreate