Tested the patch, everything seems fine. https://bugs.python.org/review/433028/diff/18393/Doc/library/re.rst File Doc/library/re.rst (right): https://bugs.python.org/review/433028/diff/18393/Doc/library/re.rst#newcode248 Doc/library/re.rst:248: .. versionadded: 3.7 Shouldn't this be 3.6? https://bugs.python.org/review/433028/diff/18393/Lib/sre_parse.py File Lib/sre_parse.py (right): https://bugs.python.org/review/433028/diff/18393/Lib/sre_parse.py#newcode774 Lib/sre_parse.py:774: while True: This and the while loop below are very similar, perhaps it's worth abstracting them into a small sub-function? https://bugs.python.org/review/433028/diff/18393/Misc/NEWS File Misc/NEWS (right): https://bugs.python.org/review/433028/diff/18393/Misc/NEWS#newcode94 Misc/NEWS:94: - Issue #433028: Added support of modifier spans in regular expressions. support for
Thank you for your review SilentGhost. https://bugs.python.org/review/433028/diff/18393/Doc/library/re.rst File Doc/library/re.rst (right): https://bugs.python.org/review/433028/diff/18393/Doc/library/re.rst#newcode248 Doc/library/re.rst:248: .. versionadded: 3.7 On 2016/09/07 20:34:47, SilentGhost wrote: > Shouldn't this be 3.6? Good catch! https://bugs.python.org/review/433028/diff/18393/Lib/sre_parse.py File Lib/sre_parse.py (right): https://bugs.python.org/review/433028/diff/18393/Lib/sre_parse.py#newcode774 Lib/sre_parse.py:774: while True: On 2016/09/07 20:34:47, SilentGhost wrote: > This and the while loop below are very similar, perhaps it's worth abstracting > them into a small sub-function? Loops are similar, but there are many small differences (in particular different error messages). It is possible to extract both loops in a sub-function, but with all special cases it would be not so small. https://bugs.python.org/review/433028/diff/18393/Misc/NEWS File Misc/NEWS (right): https://bugs.python.org/review/433028/diff/18393/Misc/NEWS#newcode94 Misc/NEWS:94: - Issue #433028: Added support of modifier spans in regular expressions. On 2016/09/07 20:34:47, SilentGhost wrote: > support for Done.