mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-11 00:01:54 +08:00
revised TODOs
This commit is contained in:
@@ -155,7 +155,7 @@ def complete(source, row, column, source_path):
|
|||||||
completions = []
|
completions = []
|
||||||
debug.dbg('possible scopes', scopes)
|
debug.dbg('possible scopes', scopes)
|
||||||
for s in scopes:
|
for s in scopes:
|
||||||
# TODO is this reall the right way? just ignore the functions? \
|
# TODO is this really the right way? just ignore the functions? \
|
||||||
# do the magic functions first? and then recheck here?
|
# do the magic functions first? and then recheck here?
|
||||||
if not isinstance(s, evaluate.Function):
|
if not isinstance(s, evaluate.Function):
|
||||||
completions += s.get_defined_names()
|
completions += s.get_defined_names()
|
||||||
|
|||||||
@@ -27,9 +27,6 @@ as input.
|
|||||||
Ignored statements:
|
Ignored statements:
|
||||||
- print (no use for it, just slows down)
|
- print (no use for it, just slows down)
|
||||||
- exec (dangerous - not controllable)
|
- exec (dangerous - not controllable)
|
||||||
|
|
||||||
TODO take special care for future imports
|
|
||||||
TODO check meta classes
|
|
||||||
"""
|
"""
|
||||||
from _compatibility import next, literal_eval, tokenize_func, BytesIO
|
from _compatibility import next, literal_eval, tokenize_func, BytesIO
|
||||||
|
|
||||||
@@ -122,7 +119,7 @@ class Scope(Simple):
|
|||||||
def add_docstr(self, string):
|
def add_docstr(self, string):
|
||||||
""" Clean up a docstring """
|
""" Clean up a docstring """
|
||||||
|
|
||||||
# TODO use prefixes, to format the doc strings
|
# TODO use prefixes, to format the doc strings -> inspect.cleandoc
|
||||||
# scan for string prefixes like r, u, etc.
|
# scan for string prefixes like r, u, etc.
|
||||||
index1 = string.find("'")
|
index1 = string.find("'")
|
||||||
index2 = string.find('"')
|
index2 = string.find('"')
|
||||||
@@ -641,8 +638,6 @@ class Statement(Simple):
|
|||||||
result = call
|
result = call
|
||||||
elif tok in brackets.keys(): # brackets
|
elif tok in brackets.keys(): # brackets
|
||||||
level += 1
|
level += 1
|
||||||
# TODO why is this not working, when the two statements ar not
|
|
||||||
# in the if/else clause (they are exactly the same!!!)
|
|
||||||
if is_call_or_close():
|
if is_call_or_close():
|
||||||
result = Array(brackets[tok], self, result)
|
result = Array(brackets[tok], self, result)
|
||||||
result = result.parent.add_execution(result)
|
result = result.parent.add_execution(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user