Add an access abstraction (only array tests work, yet)
The access abstraction will be the new way of accessing builtin objects. This way it will be easier to move that to another process
This commit is contained in:
1 parent
52bc1be84e
commit
7263d8565b
10 files changed
+408
-235
No files matched your search
@@ -183,7 +183,7 @@ def is_compiled(context):
|
||||
|
||||
|
||||
def is_string(context):
|
||||
return is_compiled(context) and isinstance(context.obj, (str, unicode))
|
||||
return is_compiled(context) and isinstance(context.get_safe_value(default=None), (str, unicode))
|
||||
|
||||
|
||||
def is_literal(context):
|
||||
@@ -191,4 +191,4 @@ def is_literal(context):
|
||||
|
||||
|
||||
def is_number(context):
|
||||
return is_compiled(context) and isinstance(context.obj, (int, float))
|
||||
return is_compiled(context) and isinstance(context.get_safe_value(default=None), (int, float))
|
||||
Reference in new issue
Block a user