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 jbmilam
Recipients BreamoreBoy, Jimbofbx, docs@python, jbmilam, martin.panter, pitrou, r.david.murray, serhiy.storchaka
Date 2015-06-01.21:25:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433193914.07.0.672204317652.issue12020@psf.upfronthosting.co.za>
In-reply-to
Content
I've been looking over the issue and the error is just raised by the stdout change not the stderr change (when the stdout line is commented out in the setAutoFlush function no error is raised). The flush method doesn't seem to be required as Serhiy pointed out since the script still is able to run. This is the cause for the error, however and I think that the required subset of methods for stdout objects to avoid errors could be clarified in the documentation. This documentation addition I think would be best under the sys.stdout info rather than under io.TextIOBase since the error can be raised without going through this class at all like in the original post.

I would like to add this documentation under sys.stdout as required subset of methods that must be defined and was wondering if there were any other methods than flush() that would need to be defined.
History
Date User Action Args
2015-06-01 21:25:14jbmilamsetrecipients: + jbmilam, pitrou, r.david.murray, docs@python, BreamoreBoy, Jimbofbx, martin.panter, serhiy.storchaka
2015-06-01 21:25:14jbmilamsetmessageid: <1433193914.07.0.672204317652.issue12020@psf.upfronthosting.co.za>
2015-06-01 21:25:14jbmilamlinkissue12020 messages
2015-06-01 21:25:13jbmilamcreate