• Victor Stinner's avatar
    bpo-31324: Optimize support._match_test() (#4421) · 803ddd8c
    Victor Stinner yazdı
    * Rename support._match_test() to support.match_test(): make it
      public
    * Remove support.match_tests global variable. It is replaced with a
      new support.set_match_tests() function, so match_test() doesn't
      have to check each time if patterns were modified.
    * Rewrite match_test(): use different code paths depending on the
      kind of patterns for best performances.
    Co-Authored-By: 's avatarSerhiy Storchaka <storchaka@gmail.com>
    803ddd8c
runtest.py 8.45 KB