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 eric.araujo
Recipients eric.araujo
Date 2010-11-27.20:47:38
SpamBayes Score 0.0030887495
Marked as misclassified No
Message-id <1290890860.31.0.741074832583.issue10554@psf.upfronthosting.co.za>
In-reply-to
Content
I propose that __enter__ and __exit__ be added to subprocess.Popen.  __enter__ returns self, __exit__ closes open file descriptors.

__exit__ could also do the same checks that __del__ does (and which I don’t entirely understand.

See also os.popen (os._wrap_close).
History
Date User Action Args
2010-11-27 20:47:40eric.araujosetrecipients: + eric.araujo
2010-11-27 20:47:40eric.araujosetmessageid: <1290890860.31.0.741074832583.issue10554@psf.upfronthosting.co.za>
2010-11-27 20:47:38eric.araujolinkissue10554 messages
2010-11-27 20:47:38eric.araujocreate