MCPcopy Index your code
hub / github.com/RustPython/RustPython / compile

Method compile

Lib/_strptime.py:484–486  ·  view source on GitHub ↗

Return a compiled re object for the format string.

(self, format)

Source from the content-addressed store, hash-verified

482 return format
483
484 def compile(self, format):
485 """Return a compiled re object for the format string."""
486 return re_compile(self.pattern(format), IGNORECASE)
487
488_cache_lock = _thread_allocate_lock()
489# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock

Callers 15

_strptimeFunction · 0.95
mainFunction · 0.45
bench_rustpython_codeFunction · 0.45
bench_rustpython_codeFunction · 0.45
imaplib.pyFile · 0.45
_mode_asciiMethod · 0.45
_mode_utf8Method · 0.45
_connectMethod · 0.45
_splitlines_no_ffFunction · 0.45
format_stringFunction · 0.45
_compile_patternFunction · 0.45
fnmatch.pyFile · 0.45

Calls 1

patternMethod · 0.95

Tested by 15

_find_linenoMethod · 0.36
make_scriptMethod · 0.36
test_buffer_sizesMethod · 0.36
test_absolute_pathMethod · 0.36
test_cache_pathMethod · 0.36
test_cwdMethod · 0.36
test_relative_pathMethod · 0.36
test_bad_codingMethod · 0.36