Ma Lin <malin...@163.com> added the comment:
Simplify the test-case, it seem the `state` is not reset properly. Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) >>> import re >>> re.findall(r"(?=(<\w+>)(<\w+>)?)", "<aaa><bbb>") [('<aaa>', '<bbb>'), ('<bbb>', '')] Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) >>> import re >>> re.findall(r"(?=(<\w+>)(<\w+>)?)", "<aaa><bbb>") [('<aaa>', '<bbb>'), ('<bbb>', '<bbb>')] ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34294> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com