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 manuelg_
Recipients akuchling, manuelg_
Date 2010-02-23.00:34:15
SpamBayes Score 2.4894086e-06
Marked as misclassified No
Message-id <1266885256.58.0.367325917759.issue1708316@psf.upfronthosting.co.za>
In-reply-to
Content
The supported version and the trunk of pyreadline launchpad.net/pyreadline no long relies on sys.stdout for the encoding for the Windows console.

Getting .encoding from sys.__stdout__ seems reasonable.  If taken from sys.stdout at very last moment, only referencing sys.__stdout__ if sys.stdout is missing .encoding might be optimal, but since the bug was in pyreadline, and it is no longer trying to get .encoding from sys.stdout (which it shouldn't do anyway, because no guarantee is made that sys.stdout even has an attr .encoding), the whole point may be moot.

I rely on your judgement.  Since I only use the supported version of pyreadline, the error no longer happens in the unpatched code.
History
Date User Action Args
2010-02-23 00:34:16manuelg_setrecipients: + manuelg_, akuchling
2010-02-23 00:34:16manuelg_setmessageid: <1266885256.58.0.367325917759.issue1708316@psf.upfronthosting.co.za>
2010-02-23 00:34:15manuelg_linkissue1708316 messages
2010-02-23 00:34:15manuelg_create