Antoine Pitrou added the comment: A simple way of checking is to actually re.compile(regex), I think. It should automatically raise TypeError on invalid input.
---------- nosy: +pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20145> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com