MCPcopy Index your code
hub / github.com/python/cpython / compile

Method compile

Lib/_strptime.py:491–493  ·  view source on GitHub ↗

Return a compiled re object for the format string.

(self, format)

Source from the content-addressed store, hash-verified

489 return format
490
491 def compile(self, format):
492 """Return a compiled re object for the format string."""
493 return re_compile(self.pattern(format), IGNORECASE)
494
495_cache_lock = _thread_allocate_lock()
496# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock

Callers 15

_strptimeFunction · 0.95
check-warnings.pyFile · 0.45
check-html-ids.pyFile · 0.45
misc_news.pyFile · 0.45
pyspecific.pyFile · 0.45
get_header_version_infoFunction · 0.45
GrammarSnippetBaseClass · 0.45
__main__.pyFile · 0.45
imaplib.pyFile · 0.45
_mode_asciiMethod · 0.45
_mode_utf8Method · 0.45

Calls 1

patternMethod · 0.95

Tested by 15

_find_linenoMethod · 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