Fixed #125: SheerkaErrorManager
Fixed #135: Change services service priorities Fixed #136: ErrorManager: Implement recognize_error Fixed #137: BNFNodeParser : Error when parsing regex with sub parsers Fixed #138: get_last_errors(): real errors sources are lost Fixed #139: OneError return value removes the origin of the error Fixed #140: Concept variables are not correctly handled when parsing sub expression Fixed #143: Implement has_unknown_concepts()
This commit is contained in:
Vendored
+9
@@ -16,6 +16,15 @@ class FastCache:
|
||||
def __contains__(self, item):
|
||||
return self.has(item)
|
||||
|
||||
def __iter__(self):
|
||||
yield from self.cache
|
||||
|
||||
def __next__(self):
|
||||
return next(iter(self.cache))
|
||||
|
||||
def __len__(self):
|
||||
return len(self.cache)
|
||||
|
||||
def put(self, key, value):
|
||||
if len(self.cache) == self.max_size:
|
||||
del self.cache[self.lru.pop(0)]
|
||||
|
||||
Reference in New Issue
Block a user