• Victor Stinner's avatar
    Implement rich comparison for _sre.SRE_Pattern · b44fb128
    Victor Stinner yazdı
    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).
    b44fb128
_sre.c 79.5 KB