Quentin Wenger <wenger.quen...@bluewin.ch> added the comment:

An extraneous difficulty also exists for bytes regexes, because there non-ascii 
characters are repr'ed using escape sequences. So there's a risk of cutting one 
in the middle.

```
>>> import re
>>> re.match(b".*", b"\xce")
<re.Match object; span=(0, 1), match=b'\xce'>
```

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39949>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to