commit | b44fb128ae5d9562f00a944e2d22392235073a69 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Mon Nov 21 16:35:08 2016 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Mon Nov 21 16:35:08 2016 +0100 |
tree | a02c44010193373a6766920250f2bfbd1af03f21 | |
parent | a2f7ee8b26e00124c0587932364b26635af84c45 [diff] |
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).