Ma Lin <malin...@163.com> added the comment:
@veaba Post only in English is fine. > Is this actually needed? Maybe very very few people dynamically generate some large patterns. > However, \g<...> is not accepted in a pattern. > in the "regex" module I added support for it in a pattern too. Yes, backreference number in pattern also can't >= 100 Support \g<...> in pattern is a good idea. If fix this issue, may produce backward compatibility issue: the parser will confuse backreference numbers and octal escape numbers. Maybe can clarify the limit (<=99) in the document is enough. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38582> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com