PSL

Python Standard Library: Python标准库


Internationalization

gettext

locale


Program Frameworks

cmd

shlex

类shell的词法分析.

classes:

1
shlex

functions:

1
2
split(s, comments=False, posix=True)
# split("command **kwargs") -> ['command', 'arg1', ...]

data:


Custom Python Interpreters

code

codeop


Python Language Services

keyword

1
import keyword

functions:

1
keyword.iskeyword(keyword) # x.__contains__(y) <==> y in x

data:

1
keyword.kwlist # 返回所有关键字的列表

parser

ast

symtable

symbol

token

tokenize

tabnanny

pyclbr

py_compile

compileall

dis

pickletools


Importing Modules

imp

importlib

zipimport

pkgutil

modulefinder

runpy


Miscellaneous Services

formatter

ihooks