mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
24 lines
552 B
Python
24 lines
552 B
Python
import parsing
|
|
|
|
def complete(source, row, colum, file_callback=None):
|
|
"""
|
|
An auto completer for python files.
|
|
|
|
:param source: The source code of the current file
|
|
:type source: string
|
|
:param row: The row to complete in.
|
|
:type row: int
|
|
:param col: The column to complete in.
|
|
:type col: int
|
|
:return: list
|
|
:rtype: list
|
|
"""
|
|
row = 38
|
|
p = parsing.PyFuzzyParser(source, row)
|
|
|
|
print
|
|
print
|
|
print p.user_scope
|
|
print p.user_scope.get_simple_for_line(row)
|
|
return p.user_scope.get_set_vars()
|