INADA Naoki <songofaca...@gmail.com> added the comment:

> When optimizing, please don't make API changes.

This is not only optimization, but bugfix.

Document of string.Template says:

> By default, "identifier" is restricted to any case-insensitive ASCII  
> alphanumeric string (including underscores) that starts with an underscore or 
> ASCII letter.

So, missing re.ASCII flag is bug because non-ASCII alphabet can be matched.

----------

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

Reply via email to