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 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 <>
>  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.
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: <>
2019-05-08 05:58:55mitarlinkissue13824 messages
2019-05-08 05:58:55mitarcreate