1
0
forked from VimPlug/jedi

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:
Dave Halter
2017-11-25 19:47:49 +01:00
parent 52bc1be84e
commit 7263d8565b
10 changed files with 408 additions and 235 deletions
+2 -2
View File
@@ -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))