Created
September 12, 2014 14:13
-
-
Save pe224/195d69717028c97cadde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import jedi | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "jedi\api\__init__.py", line 157, in completions | |
completions = get_completions(user_stmt, b) | |
File "jedi\api\__init__.py", line 136, in get_completions | |
return self._simple_complete(path, like) | |
File "jedi\api\__init__.py", line 209, in _simple_complete | |
scopes = list(self._prepare_goto(path, True)) | |
File "jedi\api\__init__.py", line 271, in _prepare_goto | |
scopes = self._evaluator.eval_statement(eval_stmt) | |
File "jedi\evaluate\cache.py", line 39, in wrapper | |
rv = function(obj, *args, **kwargs) | |
File "jedi\evaluate\recursion.py", line 24, in run | |
result = func(evaluator, stmt, *args, **kwargs) | |
File "jedi\debug.py", line 52, in wrapper | |
result = func(*args, **kwargs) | |
File "jedi\evaluate\__init__.py", line 133, in eval_statement | |
result = self.eval_expression_list(expression_list) | |
File "jedi\evaluate\__init__.py", line 172, in eval_expression_list | |
return precedence.process_precedence_element(self, p) or [] | |
File "jedi\evaluate\precedence.py", line 247, in process_precedence_element | |
return evaluator.eval_statement_element(precedence) | |
File "jedi\evaluate\__init__.py", line 202, in eval_statement_element | |
return self.eval_call(element) | |
File "jedi\evaluate\__init__.py", line 213, in eval_call | |
return self.eval_call_path(path, scope, s.start_pos) | |
File "jedi\evaluate\__init__.py", line 227, in eval_call_path | |
search_global=True) | |
File "jedi\evaluate\__init__.py", line 114, in find_types | |
return f.find(scopes, resolve_decorator, search_global) | |
File "jedi\debug.py", line 52, in wrapper | |
result = func(*args, **kwargs) | |
File "jedi\evaluate\finder.py", line 42, in find | |
types = self._names_to_types(names, resolve_decorator) | |
File "jedi\evaluate\finder.py", line 245, in _names_to_types | |
types += self._remove_statements(typ, name) | |
File "jedi\evaluate\finder.py", line 276, in _remove_statements | |
types += evaluator.eval_statement(stmt, seek_name=unicode(self.name_str)) | |
File "jedi\evaluate\cache.py", line 39, in wrapper | |
rv = function(obj, *args, **kwargs) | |
File "jedi\evaluate\recursion.py", line 24, in run | |
result = func(evaluator, stmt, *args, **kwargs) | |
File "jedi\debug.py", line 52, in wrapper | |
result = func(*args, **kwargs) | |
File "jedi\evaluate\__init__.py", line 133, in eval_statement | |
result = self.eval_expression_list(expression_list) | |
File "jedi\evaluate\__init__.py", line 172, in eval_expression_list | |
return precedence.process_precedence_element(self, p) or [] | |
File "jedi\evaluate\precedence.py", line 247, in process_precedence_element | |
return evaluator.eval_statement_element(precedence) | |
File "jedi\evaluate\__init__.py", line 202, in eval_statement_element | |
return self.eval_call(element) | |
File "jedi\evaluate\__init__.py", line 213, in eval_call | |
return self.eval_call_path(path, scope, s.start_pos) | |
File "jedi\evaluate\__init__.py", line 233, in eval_call_path | |
return self.follow_path(path, types, scope) | |
File "jedi\evaluate\__init__.py", line 247, in follow_path | |
fp = self._follow_path(iter_paths[i], typ, call_scope) | |
File "jedi\evaluate\__init__.py", line 295, in _follow_path | |
types = self.find_types(typ, current) | |
File "jedi\evaluate\__init__.py", line 114, in find_types | |
return f.find(scopes, resolve_decorator, search_global) | |
File "jedi\debug.py", line 52, in wrapper | |
result = func(*args, **kwargs) | |
File "jedi\evaluate\finder.py", line 41, in find | |
names = self.filter_name(scopes) | |
File "jedi\evaluate\finder.py", line 110, in filter_name | |
self.scope) | |
File "jedi\evaluate\flow_analysis.py", line 68, in break_check | |
return reachable & break_check(evaluator, base_scope, element_scope.parent) | |
File "jedi\evaluate\flow_analysis.py", line 67, in break_check | |
if base_scope != element_scope and base_scope != element_scope.parent: | |
AttributeError: 'NoneType' object has no attribute 'parent' | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[<Completion: all>, <Completion: any>, <Completion: append>, <Completion: argmax>, <Completion: argmin>, <Completion: argpartition>, <Completion: argsort>, <Completion: astype>, <Completion: base>, <Completion: byteswap>, <Completion: choose>, <Completion: clip>, <Completion: compress>, <Completion: conj>, <Completion: conjugate>, <Completion: copy>, <Completion: count>, <Completion: ctypes>, <Completion: cumprod>, <Completion: cumsum>, <Completion: data>, <Completion: diagonal>, <Completion: dot>, <Completion: dtype>, <Completion: dump>, <Completion: dumps>, <Completion: extend>, <Completion: field>, <Completion: fill>, <Completion: flags>, <Completion: flat>, <Completion: flatten>, <Completion: getfield>, <Completion: imag>, <Completion: index>, <Completion: insert>, <Completion: item>, <Completion: itemset>, <Completion: itemsize>, <Completion: max>, <Completion: mean>, <Completion: min>, <Completion: mro>, <Completion: nbytes>, <Completion: ndim>, <Completion: newbyteorder>, <Completion: nonzero>, <Completion: partition>, <Completion: pop>, <Completion: prod>, <Completion: ptp>, <Completion: put>, <Completion: ravel>, <Completion: real>, <Completion: remove>, <Completion: repeat>, <Completion: reshape>, <Completion: resize>, <Completion: reverse>, <Completion: round>, <Completion: searchsorted>, <Completion: setfield>, <Completion: setflags>, <Completion: shape>, <Completion: size>, <Completion: sort>, <Completion: squeeze>, <Completion: std>, <Completion: strides>, <Completion: sum>, <Completion: swapaxes>, <Completion: T>, <Completion: take>, <Completion: tofile>, <Completion: tolist>, <Completion: tostring>, <Completion: trace>, <Completion: transpose>, <Completion: var>, <Completion: view>, <Completion: __abs__>, <Completion: __abstractmethods__>, <Completion: __add__>, <Completion: __and__>, <Completion: __array__>, <Completion: __array_finalize__>, <Completion: __array_interface__>, <Completion: __array_prepare__>, <Completion: __array_priority__>, <Completion: __array_struct__>, <Completion: __array_wrap__>, <Completion: __base__>, <Completion: __bases__>, <Completion: __basicsize__>, <Completion: __call__>, <Completion: __class__>, <Completion: __contains__>, <Completion: __copy__>, <Completion: __deepcopy__>, <Completion: __delattr__>, <Completion: __delitem__>, <Completion: __delslice__>, <Completion: __dict__>, <Completion: __dictoffset__>, <Completion: __div__>, <Completion: __divmod__>, <Completion: __doc__>, <Completion: __eq__>, <Completion: __flags__>, <Completion: __float__>, <Completion: __floordiv__>, <Completion: __format__>, <Completion: __ge__>, <Completion: __getattribute__>, <Completion: __getitem__>, <Completion: __getslice__>, <Completion: __gt__>, <Completion: __hash__>, <Completion: __hex__>, <Completion: __iadd__>, <Completion: __iand__>, <Completion: __idiv__>, <Completion: __ifloordiv__>, <Completion: __ilshift__>, <Completion: __imod__>, <Completion: __imul__>, <Completion: __index__>, <Completion: __init__>, <Completion: __instancecheck__>, <Completion: __int__>, <Completion: __invert__>, <Completion: __ior__>, <Completion: __ipow__>, <Completion: __irshift__>, <Completion: __isub__>, <Completion: __itemsize__>, <Completion: __iter__>, <Completion: __iterable>, <Completion: __itruediv__>, <Completion: __ixor__>, <Completion: __le__>, <Completion: __len__>, <Completion: __long__>, <Completion: __lshift__>, <Completion: __lt__>, <Completion: __mod__>, <Completion: __module__>, <Completion: __mro__>, <Completion: __mul__>, <Completion: __name__>, <Completion: __ne__>, <Completion: __neg__>, <Completion: __new__>, <Completion: __nonzero__>, <Completion: __oct__>, <Completion: __or__>, <Completion: __pos__>, <Completion: __pow__>, <Completion: __radd__>, <Completion: __rand__>, <Completion: __rdiv__>, <Completion: __rdivmod__>, <Completion: __reduce__>, <Completion: __reduce_ex__>, <Completion: __repr__>, <Completion: __reversed__>, <Completion: __rfloordiv__>, <Completion: __rlshift__>, <Completion: __rmod__>, <Completion: __rmul__>, <Completion: __ror__>, <Completion: __rpow__>, <Completion: __rrshift__>, <Completion: __rshift__>, <Completion: __rsub__>, <Completion: __rtruediv__>, <Completion: __rxor__>, <Completion: __setattr__>, <Completion: __setitem__>, <Completion: __setslice__>, <Completion: __setstate__>, <Completion: __sizeof__>, <Completion: __str__>, <Completion: __sub__>, <Completion: __subclasscheck__>, <Completion: __subclasses__>, <Completion: __subclasshook__>, <Completion: __truediv__>, <Completion: __weakrefoffset__>, <Completion: __xor__>] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> jedi.Script('import numpy; a = numpy.array([0]); a.').completions() | |
[] | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment