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 David.Sankel, amaury.forgeotdarc, brian.curtin, christian.heimes, christoph, davidsarah, ezio.melotti, hippietrail, lemburg, mark, mhammond, pitrou, santoso.wijaya, smerlin, ssbarnea, terry.reedy, tim.golden, tzot, v+python, vstinner
Date 2011-10-19.20:57:38
SpamBayes Score 0.00022466634
Marked as misclassified No
Message-id <1319057859.21.0.80601460291.issue1602@psf.upfronthosting.co.za>
In-reply-to
Content
win_console.patch: a more complete prototype

 * patch the site module to replace sys.stdout and sys.stderr by UnicodeConsole and BytesConsole classes which use WriteConsoleW and WriteConsoleA
 * UnicodeConsole inherits from io.TextIOBase and BytesConsole inherits from io.RawIOBase
 * Revert the workaround for WriteConsoleA bug from io.FileIO

sys.stdout and/or sys.stderr are only replaced if there are not redirected.
History
Date User Action Args
2011-10-19 20:57:39vstinnersetrecipients: + vstinner, lemburg, mhammond, terry.reedy, tzot, amaury.forgeotdarc, pitrou, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, brian.curtin, davidsarah, santoso.wijaya, David.Sankel, smerlin
2011-10-19 20:57:39vstinnersetmessageid: <1319057859.21.0.80601460291.issue1602@psf.upfronthosting.co.za>
2011-10-19 20:57:38vstinnerlinkissue1602 messages
2011-10-19 20:57:38vstinnercreate