Implemented the in operator in a very simple fashion: It returns nothing.
This commit is contained in:
1 parent
53b456dff2
commit
5334f8dbad
3 files changed
+16
No files matched your search
@@ -157,6 +157,8 @@ def _element_calculate(evaluator, left, operator, right):
|
||||
except TypeError:
|
||||
# Could be True or False.
|
||||
return [true_obj, false_obj]
|
||||
elif operator == 'in':
|
||||
return []
|
||||
|
||||
def check(obj):
|
||||
"""Checks if a Jedi object is either a float or an int."""
|
||||
|
||||
Reference in new issue
Block a user