MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / compile

Function compile

tools/python-3.11.9-amd64/Lib/re/__init__.py:225–227  ·  view source on GitHub ↗

Compile a regular expression pattern, returning a Pattern object.

(pattern, flags=0)

Source from the content-addressed store, hash-verified

223 return _compile(pattern, flags).finditer(string)
224
225def compile(pattern, flags=0):
226 "Compile a regular expression pattern, returning a Pattern object."
227 return _compile(pattern, flags)
228
229def purge():
230 "Clear the regular expression caches"

Callers 15

execfileMethod · 0.50
checksyntaxMethod · 0.50
setUpClassMethod · 0.50
test_functionsMethod · 0.50
test_sync_source_lineMethod · 0.50
setUpMethod · 0.50
test_get_messageMethod · 0.50
get_codeMethod · 0.50
source_to_codeMethod · 0.50
run_scriptMethod · 0.50
get_module_constantFunction · 0.50

Calls 1

_compileFunction · 0.70

Tested by 6

setUpClassMethod · 0.40
test_functionsMethod · 0.40
test_sync_source_lineMethod · 0.40
setUpMethod · 0.40
test_get_messageMethod · 0.40