[New-bugs-announce] [issue31672] string.Template should use re.ASCII flag
INADA Naoki
report at bugs.python.org
Tue Oct 3 07:15:40 EDT 2017
New submission from INADA Naoki <songofacandy at gmail.com>:
Currently, strings.Template uses re.IGNORECASE without re.ASCII:
idpattern = r'[_a-z][_a-z0-9]*'
flags = _re.IGNORECASE
[a-z] matches against 'ı' (0x131, DOTLESS I) and 'ſ' (0x17f, LONG S).
It is not intentional, and it makes re.compile slower.
----------
components: Regular Expressions
messages: 303596
nosy: ezio.melotti, inada.naoki, mrabarnett
priority: normal
severity: normal
status: open
title: string.Template should use re.ASCII flag
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31672>
_______________________________________
More information about the New-bugs-announce
mailing list