• Victor Stinner's avatar
    Implement rich comparison for _sre.SRE_Pattern · 8a7467d2
    Victor Stinner authored
    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).
    8a7467d2
test_re.py 93.3 KB