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 wolma
Recipients Julius.Lehmann-Richter, brett.cannon, mhammond, pitrou, terry.reedy, wolma
Date 2016-11-23.17:29:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479922195.17.0.148510320601.issue22298@psf.upfronthosting.co.za>
In-reply-to
Content
Issue23016 fixed the "AttributeError: 'NoneType' object has no attribute 'write'" problem when sys.stderr is None.
With that it's now possible and good practice to set sys.stderr = None when closing it, just as Antoine suggested.
Should this issue be closed then?
History
Date User Action Args
2016-11-23 17:29:55wolmasetrecipients: + wolma, mhammond, brett.cannon, terry.reedy, pitrou, Julius.Lehmann-Richter
2016-11-23 17:29:55wolmasetmessageid: <1479922195.17.0.148510320601.issue22298@psf.upfronthosting.co.za>
2016-11-23 17:29:55wolmalinkissue22298 messages
2016-11-23 17:29:55wolmacreate