1
0
forked from VimPlug/jedi

implement !=, ==, is, is not operators to work in if statements (they also work in in non if contexts and return a bool value.), includes tests.

This commit is contained in:
Dave Halter
2014-08-12 17:59:09 +02:00
parent 6f018e4884
commit 8ed89e8245
3 changed files with 59 additions and 3 deletions

View File

@@ -412,6 +412,9 @@ magic_function_class = CompiledObject(type(load_module), parent=builtin)
generator_obj = CompiledObject(_a_generator(1.0))
type_names = [] # Need this, because it's return in get_defined_names.
type_names = builtin.get_by_name('type').get_defined_names()
none_obj = builtin.get_by_name('None')
false_obj = builtin.get_by_name('False')
true_obj = builtin.get_by_name('True')
def compiled_objects_cache(func):