]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Implement rich comparison for _sre.SRE_Pattern
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Nov 2016 15:35:08 +0000 (16:35 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 21 Nov 2016 15:35:08 +0000 (16:35 +0100)
commitb44fb128ae5d9562f00a944e2d22392235073a69
treea02c44010193373a6766920250f2bfbd1af03f21
parenta2f7ee8b26e00124c0587932364b26635af84c45
Implement rich comparison for _sre.SRE_Pattern

Issue #28727: Regular expression patterns, _sre.SRE_Pattern objects created by
re.compile(), become comparable (only x==y and x!=y operators). This change
should fix the issue #18383: don't duplicate warning filters when the warnings
module is reloaded (thing usually only done in unit tests).
Lib/test/test_re.py
Misc/NEWS
Modules/_sre.c