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 xuancong84
Recipients xuancong84
Date 2019-10-17.08:22:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571300522.6.0.320185035424.issue38503@roundup.psfhosted.org>
In-reply-to
Content
If I load a file which contains "\r" and "\n", I can find "\n", but not "\r". This behaviour is inconsistent in Python 3, but consistent in Python 2.

>>> open('./3cjkxdnw/accessibilityLog/1570181896323.csv', 'rb').read().count(b'\r')
88
>>> open('./3cjkxdnw/accessibilityLog/1570181896323.csv').read().count('\r')
0
>>> type(open('./3cjkxdnw/accessibilityLog/1570181896323.csv').read())
<class 'str'>
>>> type('\r')
<class 'str'>

Thanks!
History
Date User Action Args
2019-10-17 08:22:02xuancong84setrecipients: + xuancong84
2019-10-17 08:22:02xuancong84setmessageid: <1571300522.6.0.320185035424.issue38503@roundup.psfhosted.org>
2019-10-17 08:22:02xuancong84linkissue38503 messages
2019-10-17 08:22:01xuancong84create