MCPcopy Create free account
hub / github.com/dateutil/dateutil / __init__

Method __init__

src/dateutil/rrule.py:88–96  ·  view source on GitHub ↗
(self, cache=False)

Source from the content-addressed store, hash-verified

86
87class rrulebase:
88 def __init__(self, cache=False):
89 if cache:
90 self._cache = []
91 self._cache_lock = _thread.allocate_lock()
92 self._invalidate_cache()
93 else:
94 self._cache = None
95 self._cache_complete = False
96 self._len = None
97
98 def __reduce_ex__(self, protocol):
99 rv = super().__reduce_ex__(protocol)

Callers

nothing calls this directly

Calls 1

_invalidate_cacheMethod · 0.95

Tested by

no test coverage detected