mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
38 lines
467 B
Python
38 lines
467 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
|
|
|
|
# -----------------
|
|
# 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
|