First version of explain. Creating a new parser was a wrong approach. Need to reimplement

This commit is contained in:
2020-04-17 17:24:57 +02:00
parent 6c7c529016
commit d6ea2461a8
43 changed files with 2679 additions and 162 deletions
+3
View File
@@ -42,6 +42,9 @@ class SheerkaPickler:
if utils.is_primitive(obj):
return obj
if utils.is_type(obj):
return str(obj)
if utils.is_tuple(obj):
return {tags.TUPLE: [self.flatten(v) for v in obj]}
+4
View File
@@ -49,6 +49,10 @@ def is_tuple(obj):
return type(obj) is tuple
def is_class(obj):
return type(obj) is type
def b64encode(data):
"""
Encode binary data to ascii text in base64. Data must be bytes.