MCPcopy Create free account
hub / github.com/ActiveState/code / compile

Method compile

recipes/Python/56036_Pure_Python_strptime/recipe-56036.py:311–313  ·  view source on GitHub ↗

Return a compiled re object for the format string.

(self, format)

Source from the content-addressed store, hash-verified

309 return "%s%s" % (processed_format, format)
310
311 def compile(self, format):
312 """Return a compiled re object for the format string."""
313 return re_compile(self.pattern(format), IGNORECASE)
314
315_cache_lock = _thread_allocate_lock()
316# DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock

Callers 15

recipe-546539.pyFile · 0.45
recipe-511451.pyFile · 0.45
xml2objFunction · 0.45
recipe-502293.pyFile · 0.45
recipe-52305.pyFile · 0.45
__init__Method · 0.45
pushMethod · 0.45
findcityFunction · 0.45
XMLDataExtractorClass · 0.45
pluggitFunction · 0.45
_get_nodesMethod · 0.45
WordsToNumbersClass · 0.45

Calls 1

patternMethod · 0.95

Tested by

no test coverage detected