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 vstinner
Recipients benjamin.peterson, berker.peksag, eric.smith, mjpieters, python-dev, r.david.murray, vajrasky, vstinner
Date 2015-01-05.09:57:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420451855.95.0.366594708447.issue18644@psf.upfronthosting.co.za>
In-reply-to
Content
> fl = contextlib.closing(open(sys.argv[1]))

I prefer the current code with the explicit close() and "is not sys.stdin", it's less magic :-)
History
Date User Action Args
2015-01-05 09:57:35vstinnersetrecipients: + vstinner, mjpieters, eric.smith, benjamin.peterson, r.david.murray, python-dev, berker.peksag, vajrasky
2015-01-05 09:57:35vstinnersetmessageid: <1420451855.95.0.366594708447.issue18644@psf.upfronthosting.co.za>
2015-01-05 09:57:35vstinnerlinkissue18644 messages
2015-01-05 09:57:35vstinnercreate