Module Expr Str Import alias Import alias ImportFrom alias alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad NameLoad NameLoad For NameStore Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpOr BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpAnd UnaryOpNot NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad UnaryOpNot NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Call Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Delete NameDel Assign NameStore Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr UnaryOpNot BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return NameLoad TryExcept body For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Break orelse Raise Call NameLoad Str handlers ExceptHandler type NameLoad body Pass orelse TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass orelse If CompareGt Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body TryExcept body For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Break orelse Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub UnaryOpUSub AttributeLoad NameLoad attr Num If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Pass orelse Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num While CompareLt NameLoad BinOpSub Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body If CompareEq CompareNotEq NameLoad NameLoad NameLoad body Delete SubscriptDel NameLoad Slice BinOpAdd NameLoad Num Break orelse Delete SubscriptDel NameLoad Index NameLoad orelse AugAssignAdd NameStore Num If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpMult ListLoad NameLoad Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A codegen helpers and AST constant folding. N/A sys N/A itertools pypy.interpreter.astcompiler ast consts misc pypy.tool stdlib_opcode ops pypy.interpreter.error OperationError pypy.rlib.unroll unrolling_iterable optimize_ast N/A N/A space tree compile_info N/A N/A N/A N/A N/A tree mutate_over N/A OptimizingVisitor space compile_info N/A N/A CONST_NOT_CONST -1 N/A CONST_FALSE 0 N/A CONST_TRUE 1 __extend__ N/A N/A ast AST N/A as_constant_truth N/A N/A self space N/A N/A N/A Return the truth of this node if known. N/A N/A AssertionError only for expressions N/A as_constant N/A N/A self N/A N/A N/A Return the value of this node as a wrapped constant if possible. N/A N/A AssertionError only for expressions N/A accept_jump_if N/A N/A self gen condition target N/A N/A N/A N/A AssertionError only for expressions N/A N/A __extend__ N/A N/A ast expr N/A as_constant_truth N/A N/A self space N/A N/A N/A const N/A N/A self as_constant N/A N/A const None N/A N/A CONST_NOT_CONST N/A N/A int N/A N/A space is_true const N/A as_constant N/A N/A self N/A N/A N/A None N/A accept_jump_if N/A N/A self gen condition target N/A N/A N/A N/A N/A self walkabout gen N/A condition N/A N/A N/A N/A gen emit_jump N/A ops JUMP_IF_TRUE target N/A N/A N/A N/A gen emit_jump N/A ops JUMP_IF_FALSE target N/A N/A __extend__ N/A N/A ast Num N/A as_constant N/A N/A self N/A N/A N/A N/A self n N/A N/A __extend__ N/A N/A ast Str N/A as_constant N/A N/A self N/A N/A N/A N/A self s N/A N/A __extend__ N/A N/A ast Const N/A as_constant N/A N/A self N/A N/A N/A N/A self value N/A N/A __extend__ N/A N/A ast UnaryOp N/A accept_jump_if N/A N/A self gen condition target N/A N/A N/A N/A N/A self op N/A ast Not N/A N/A N/A N/A N/A self operand accept_jump_if gen N/A condition target N/A N/A N/A N/A N/A ast expr accept_jump_if self gen condition target N/A N/A __extend__ N/A N/A ast BoolOp N/A _accept_jump_if_any_is N/A N/A self gen condition target N/A N/A N/A N/A N/A N/A N/A self values N/A 0 accept_jump_if gen condition target N/A i N/A range 1 N/A len N/A self values N/A N/A N/A N/A gen emit_op N/A ops POP_TOP N/A N/A N/A N/A N/A self values N/A i accept_jump_if gen condition target N/A accept_jump_if N/A N/A self gen condition target N/A N/A N/A N/A N/A condition N/A N/A self op N/A ast And N/A N/A condition N/A N/A self op N/A ast Or N/A N/A end N/A N/A gen new_block N/A N/A N/A self _accept_jump_if_any_is gen N/A condition end N/A N/A N/A gen emit_jump N/A ops JUMP_FORWARD target N/A N/A N/A gen use_next_block end N/A N/A N/A N/A self _accept_jump_if_any_is gen condition target N/A N/A _binary_fold N/A N/A name N/A N/A do_fold N/A N/A space left right N/A N/A N/A N/A N/A getattr space name left right N/A N/A do_fold N/A _unary_fold N/A N/A name N/A N/A do_fold N/A N/A space operand N/A N/A N/A N/A N/A getattr space name operand N/A N/A do_fold N/A _fold_pow N/A N/A space left right N/A N/A N/A N/A N/A space pow left right N/A space w_None N/A _fold_not N/A N/A space operand N/A N/A N/A N/A N/A space wrap N/A N/A N/A space is_true operand N/A N/A binary_folders N/A N/A ast Add N/A ast Sub N/A ast Mult N/A ast Div N/A ast FloorDiv N/A ast Mod N/A ast Pow N/A ast LShift N/A ast RShift N/A ast BitOr N/A ast BitXor N/A ast BitAnd N/A _binary_fold add N/A _binary_fold sub N/A _binary_fold mul N/A _binary_fold truediv N/A _binary_fold floordiv N/A _binary_fold mod _fold_pow N/A _binary_fold lshift N/A _binary_fold rshift N/A _binary_fold or_ N/A _binary_fold xor N/A _binary_fold and_ N/A unrolling_binary_folders N/A unrolling_iterable N/A N/A binary_folders items N/A unary_folders N/A N/A ast Not N/A ast USub N/A ast UAdd N/A ast Invert _fold_not N/A _unary_fold neg N/A _unary_fold pos N/A _unary_fold invert N/A unrolling_unary_folders N/A unrolling_iterable N/A N/A unary_folders items N/A folder N/A N/A itertools chain N/A N/A binary_folders itervalues N/A N/A unary_folders itervalues N/A N/A N/A folder _always_inline_ True N/A folder N/A opposite_compare_operations N/A N/A misc dict_to_switch N/A N/A ast Is N/A ast IsNot N/A ast In N/A ast NotIn N/A ast IsNot N/A ast Is N/A ast NotIn N/A ast In OptimizingVisitor N/A N/A ast ASTVisitor N/A N/A Constant folds AST. __init__ N/A N/A self space compile_info N/A N/A N/A N/A self space space N/A N/A self compile_info compile_info N/A default_visitor N/A N/A self node N/A N/A N/A node N/A visit_BinOp N/A N/A self binop N/A N/A N/A left N/A N/A N/A binop left as_constant N/A N/A left None N/A N/A right N/A N/A N/A binop right as_constant N/A N/A right None N/A N/A op N/A binop op N/A N/A N/A op N/A ast Div N/A N/A N/A N/A self compile_info flags N/A consts CO_FUTURE_DIVISION N/A N/A binop N/A N/A N/A N/A op_kind folder unrolling_binary_folders N/A N/A N/A op_kind op N/A N/A w_const N/A folder N/A self space left right N/A N/A N/A N/A AssertionError unknown binary operation N/A N/A N/A OperationError N/A N/A N/A N/A N/A N/A w_len N/A N/A N/A self space len w_const N/A N/A N/A OperationError N/A N/A N/A N/A N/A N/A N/A N/A self space int_w w_len 20 N/A N/A binop N/A N/A N/A ast Const w_const N/A binop lineno N/A binop col_offset N/A binop N/A visit_UnaryOp N/A N/A self unary N/A N/A N/A w_operand N/A N/A N/A unary operand as_constant N/A op N/A unary op N/A N/A w_operand None N/A N/A N/A N/A N/A op_kind folder unrolling_unary_folders N/A N/A N/A op_kind op N/A N/A w_const N/A folder N/A self space w_operand N/A N/A N/A N/A AssertionError unknown unary operation N/A w_minint N/A N/A N/A self space wrap N/A N/A N/A sys maxint 1 N/A N/A N/A N/A self space eq_w w_minint w_const N/A N/A w_const w_minint N/A N/A N/A OperationError N/A N/A N/A N/A N/A N/A ast Const w_const N/A unary lineno N/A unary col_offset N/A N/A N/A op N/A ast Not N/A N/A compare N/A unary operand N/A N/A N/A isinstance compare N/A ast Compare N/A N/A len N/A compare ops 1 N/A N/A cmp_op N/A N/A compare ops N/A 0 N/A N/A N/A opposite N/A opposite_compare_operations cmp_op N/A N/A N/A KeyError N/A N/A N/A N/A N/A N/A compare ops N/A 0 opposite N/A compare N/A unary N/A visit_BoolOp N/A N/A self bop N/A N/A N/A values N/A bop values N/A we_are_and N/A N/A bop op N/A ast And N/A i 0 N/A N/A i N/A N/A len values 1 N/A N/A truth N/A N/A N/A values N/A i as_constant_truth N/A self space N/A N/A truth CONST_NOT_CONST N/A N/A N/A N/A truth CONST_TRUE we_are_and N/A N/A N/A values N/A N/A i 1 N/A N/A N/A N/A values N/A i N/A N/A i 1 N/A N/A N/A len values 1 N/A N/A N/A values N/A 0 N/A bop N/A visit_Repr N/A N/A self rep N/A N/A N/A w_const N/A N/A N/A rep value as_constant N/A N/A w_const None N/A N/A w_repr N/A N/A N/A self space repr w_const N/A N/A N/A ast Const w_repr N/A rep lineno N/A rep col_offset N/A rep N/A visit_Name N/A N/A self name N/A N/A N/A N/A N/A name id None N/A N/A N/A N/A name ctx N/A ast Load N/A N/A N/A ast Const N/A N/A self space w_None N/A name lineno N/A name col_offset N/A name N/A visit_Tuple N/A N/A self tup N/A N/A N/A Try to turn tuple building into a constant. N/A N/A tup elts N/A N/A consts_w N/A N/A None N/A len N/A tup elts N/A i N/A range N/A len N/A tup elts N/A N/A node N/A N/A tup elts N/A i N/A w_const N/A N/A node as_constant N/A N/A w_const None N/A N/A tup N/A N/A consts_w N/A i w_const N/A N/A consts_w N/A N/A w_consts N/A N/A N/A self space newtuple consts_w N/A N/A N/A ast Const w_consts N/A tup lineno N/A tup col_offset N/A N/A