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 duncanb
Recipients SilentGhost, brian.curtin, duncanb, ezio.melotti, georg.brandl, pitrou, v+python, vstinner
Date 2011-02-21.20:05:24
SpamBayes Score 1.0806773e-06
Marked as misclassified No
Message-id <>
Yes, it does indeed look like stdin has been opened in binary mode. Just iterating over it also gives the spurious carriage returns:

    Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import sys
    >>> for line in sys.stdin:
    ...     print(repr(line))
Date User Action Args
2011-02-21 20:05:25duncanbsetrecipients: + duncanb, georg.brandl, pitrou, vstinner, ezio.melotti, v+python, brian.curtin, SilentGhost
2011-02-21 20:05:25duncanbsetmessageid: <>
2011-02-21 20:05:24duncanblinkissue11272 messages
2011-02-21 20:05:24duncanbcreate