Fixed #30 : Add variable support in BNF concept definition
Fixed #31 : Add regex support in BNF Concept Fixed #33 : Do not memorize object during restore
This commit is contained in:
@@ -734,7 +734,7 @@ class Sheerka(Concept):
|
||||
if not isinstance(obj, Concept):
|
||||
return True
|
||||
|
||||
return obj.key not in (BuiltinConcepts.UNKNOWN_CONCEPT, BuiltinConcepts.UNKNOWN_RULE)
|
||||
return obj.key not in (None, BuiltinConcepts.UNKNOWN_CONCEPT, BuiltinConcepts.UNKNOWN_RULE)
|
||||
|
||||
@staticmethod
|
||||
def isinstance(a, b):
|
||||
@@ -879,6 +879,13 @@ class Sheerka(Concept):
|
||||
|
||||
return concept
|
||||
|
||||
@staticmethod
|
||||
def deepdiff(a, b):
|
||||
from deepdiff import DeepDiff
|
||||
ddiff = DeepDiff(a, b, ignore_order=True)
|
||||
print(ddiff)
|
||||
return ddiff
|
||||
|
||||
|
||||
def to_profile():
|
||||
sheerka = Sheerka()
|
||||
|
||||
Reference in New Issue
Block a user