[New-bugs-announce] [issue31825] bytes decode raises OverflowError desipte errors='ignore'

Sebastian Kacprzak report at bugs.python.org
Fri Oct 20 05:58:20 EDT 2017


New submission from Sebastian Kacprzak <nait at naitbit.com>:

In Python 3.5 and earlier (tested 3.5.3 and 2.7.13)
b'\\\xfa'.decode('unicode-escape', errors='ignore')
did return '\\ú'

but in Python 3.6 it raises 
OverflowError: decoding with 'unicode-escape' codec failed (OverflowError: character argument not in range(0x110000))


Python 3.6.1 (default, Sep  7 2017, 16:36:03) 
[GCC 6.3.0 20170406] on linux

----------
messages: 304651
nosy: nait
priority: normal
severity: normal
status: open
title: bytes decode raises OverflowError desipte errors='ignore'
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31825>
_______________________________________


More information about the New-bugs-announce mailing list