parameters: (pattern, s)
return_statement: return _regexp_compile_cache[pattern].match(s)
docstring: Matches the string with the pattern, caching the compiled regexp.
docstring_summary: Matches the string with the pattern, caching the compiled regexp.
docstring_tokens: Matches the string with the pattern caching the compiled regexp .
function: def Match(pattern, s):
      """Matches the string with the pattern, caching the compiled regexp."""
      # The regexp compilation caching is inlined in both Match and Search for
      # performance reasons; factoring it out into a separate function turns out
      # to be noticeably expensive.
      if pattern not in _regexp_compile_cache:
          _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
      return _regexp_compile_cache[pattern].match(s)
function_tokens: def Match ( pattern , s ) : # The regexp compilation caching is inlined in both Match and Search for # performance reasons; factoring it out into a separate function turns out # to be noticeably expensive. if pattern not in _regexp_compile_cache : _regexp_compile_cache [ pattern ] = sre_compile . compile ( pattern ) return _regexp_compile_cache [ pattern ] . match ( s )