New submission from Anatoly Myachev <anatoliimyac...@mail.ru>:
Expected behavior - if `read()` function works correctly, then `readline()` should also works. Reproducer in file - just run: `python test.py`. Traceback (most recent call last): File "test.py", line 11, in <module> f.readline() File "C:\Users\amyachev\Miniconda3\envs\modin\lib\encodings\unicode_escape.py", line 26, in decode return codecs.unicode_escape_decode(input, self.errors)[0] UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string ---------- components: Unicode files: test.py messages: 403837 nosy: anmyachev, ezio.melotti, vstinner priority: normal severity: normal status: open title: UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 8191: \ at end of string type: behavior versions: Python 3.8 Added file: https://bugs.python.org/file50354/test.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45461> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com