Serhiy Storchaka added the comment:

Thanks Tim, this is great idea! I consider this as usability bug and going to 
apply a fix to 3.6.

But regular expression can be generated and be very long. I think it should be 
truncated before including in a warning message.

As for Django, you can use (?i:CaseInsensitive) in 3.7 (unless _prefix is case 
sensitive, but you want to make it case sensitive if pattern is case sensitive).

----------

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

Reply via email to