mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
65 lines
874 B
Python
65 lines
874 B
Python
# -----------------
|
|
# std lib modules
|
|
# -----------------
|
|
import tokenize
|
|
#? ['tok_name']
|
|
tokenize.tok_name
|
|
|
|
from pyclbr import *
|
|
|
|
#? ['readmodule_ex']
|
|
readmodule_ex
|
|
import os
|
|
|
|
#? ['dirname']
|
|
os.path.dirname
|
|
|
|
from itertools import (tee,
|
|
islice)
|
|
#? ['islice']
|
|
islice
|
|
|
|
from functools import (partial, wraps)
|
|
#? ['wraps']
|
|
wraps
|
|
|
|
from keyword import kwlist, \
|
|
iskeyword
|
|
#? ['kwlist']
|
|
kwlist
|
|
|
|
from tokenize import io
|
|
tokenize.generate_tokens
|
|
|
|
# -----------------
|
|
# builtins
|
|
# -----------------
|
|
|
|
import sys
|
|
#? ['prefix']
|
|
sys.prefix
|
|
|
|
#? ['append']
|
|
sys.path.append
|
|
|
|
from math import *
|
|
#? ['cos', 'cosh']
|
|
cos
|
|
|
|
def func_with_import():
|
|
import time
|
|
return time
|
|
|
|
#? ['sleep']
|
|
func_with_import().sleep
|
|
|
|
# -----------------
|
|
# completions within imports
|
|
# -----------------
|
|
|
|
#? ['sqlite3']
|
|
import sqlite
|
|
|
|
#? ['time']
|
|
from datetime import
|