mod
Expression
body
Interactive
*body
Module
*body
Suite
*body
stmt
Assert
test ?msg
Assign
*targets value
AugAssign
target op value
Break
ClassDef
name *bases *keywords ?starargs ?kwargs *body *decorator_list
Continue
Delete
*targets
Expr
value
For
target iter *body *orelse
FunctionDef
name args *body *decorator_list ?returns
Global
*names
If
test *body *orelse
Import
*names
ImportFrom
?module *names ?level
Nonlocal
*names
Pass
Raise
?exc ?cause
Return
?value
Try
*body *handlers *orelse *finalbody
While
test *body *orelse
With
*items *body
expr
Attribute
value attr ctx
BinOp
left op right
BoolOp
op *values
Bytes
s
Call
func *args *keywords ?starargs ?kwargs
Compare
left *ops *comparators
Dict
*keys *values
DictComp
key value *generators
Ellipsis
GeneratorExp
elt *generators
IfExp
test body orelse
Lambda
args body
List
*elts ctx
ListComp
elt *generators
Name
id ctx
NameConstant
value
Num
n
Set
*elts
SetComp
elt *generators
Starred
value ctx
Str
s
Subscript
value slice ctx
Tuple
*elts ctx
UnaryOp
op operand
Yield
?value
YieldFrom
value
boolop
And
Or
cmpop
Eq
Gt
GtE
In
Is
IsNot
Lt
LtE
NotEq
NotIn
expr_context
AugLoad
AugStore
Del
Load
Param
Store
operator
Add
BitAnd
BitOr
BitXor
Div
FloorDiv
LShift
Mod
Mult
Pow
RShift
Sub
slice
ExtSlice
*dims
Index
value
Slice
?lower ?upper ?step
unaryop
Invert
Not
UAdd
USub
alias
name ?asname
arg
arg ?annotation
arguments
*args ?vararg *kwonlyargs *kw_defaults ?kwarg *defaults
comprehension
target iter *ifs
ExceptHandler
?type ?name *body
keyword
arg value
withitem
context_expr ?optional_vars
bytes
identifier
int
object
singleton
string