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

> Yet one way -- make re.ASCII a local flag. Than we could just change the 
> idpattern attribute to r'(?a:[_a-z][_a-z0-9]*)', without touching the flags 
> attribute.

https://docs.python.org/3.6/library/re.html#regular-expression-syntax says
`(?imsx-imsx:...)`

Anyway, Template.idpattern is documented public API too.

----------

_______________________________________
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