Module Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareNotEq NameLoad NameLoad body If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Num body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Return AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Return Call NameLoad BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num BinOpAdd AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse Return Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body AugAssignAdd AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num AugAssignAdd AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num orelse AugAssignAdd AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Return Call NameLoad BinOpSub AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num BinOpSub AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse Return Call NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Return Call NameLoad BinOpSub SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr orelse Return Call NameLoad BinOpSub NameLoad AttributeLoad NameLoad attr BinOpSub NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body AugAssignSub AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignSub AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body AugAssignSub AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num AugAssignSub AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num orelse AugAssignSub AttributeStore NameLoad attr NameLoad AugAssignSub AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad BinOpSub BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list Assign AttributeStore NameLoad attr ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad ClassDef bases NameLoad body Pass decorator_list Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num Print AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Num Print AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Import alias Import alias Import alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num For NameStore Call NameLoad Num body Assign NameStore Num For NameStore Call NameLoad Num body Assign AttributeStore NameLoad attr Call NameLoad Num Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Num Num Assign AttributeStore NameLoad attr BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Print BinOpMod Str Call AttributeLoad NameLoad attr keyword Num decorator_list If CompareEq NameLoad Str body Assign NameStore Num If UnaryOpNot NameLoad body Expr Call NameLoad orelse Import alias alias Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Num
N/A N/A ctypes ctypes * N/A chipmunk_lib N/A N/A cdll LoadLibrary ./ex.so N/A function_pointer CFUNCTYPE N/A float_type c_double N/A cpFloat c_double Vec2d N/A N/A ctypes Structure N/A N/A 2d vector class, supports vector and scalar operators,
       and also provides some high level functions
        N/A __slots__ N/A x y from_param N/A N/A cls arg N/A N/A N/A Used by ctypes to automatically create Vec2ds N/A N/A cls arg N/A classmethod __init__ N/A N/A self x_or_pair y N/A None None N/A N/A N/A x_or_pair None N/A N/A N/A y None N/A N/A N/A self x N/A x_or_pair N/A 0 N/A N/A self y N/A x_or_pair N/A 1 N/A N/A N/A self x x_or_pair N/A N/A self y y N/A __getitem__ N/A N/A self key N/A N/A N/A N/A key 0 N/A N/A N/A self x N/A N/A N/A key 1 N/A N/A N/A self y N/A N/A N/A IndexError N/A N/A Invalid subscript  N/A str key  to Vec2d N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A key 0 N/A N/A N/A self x value N/A N/A N/A key 1 N/A N/A N/A self y value N/A N/A N/A IndexError N/A N/A Invalid subscript  N/A str key  to Vec2d N/A __add__ N/A N/A self other N/A N/A N/A N/A isinstance other Vec2d N/A N/A N/A Vec2d N/A N/A self x N/A other x N/A N/A self y N/A other y N/A N/A N/A hasattr other __getitem__ N/A N/A N/A Vec2d N/A N/A self x N/A other N/A 0 N/A N/A self y N/A other N/A 1 N/A N/A N/A Vec2d N/A N/A self x other N/A N/A self y other N/A N/A __radd__ __add__ __iadd__ N/A N/A self other N/A N/A N/A N/A isinstance other Vec2d N/A N/A N/A self x N/A other x N/A N/A self y N/A other y N/A N/A N/A hasattr other __getitem__ N/A N/A N/A self x N/A other N/A 0 N/A N/A self y N/A other N/A 1 N/A N/A N/A self x other N/A N/A self y other N/A self N/A __sub__ N/A N/A self other N/A N/A N/A N/A isinstance other Vec2d N/A N/A N/A Vec2d N/A N/A self x N/A other x N/A N/A self y N/A other y N/A N/A N/A hasattr other __getitem__ N/A N/A N/A Vec2d N/A N/A self x N/A other N/A 0 N/A N/A self y N/A other N/A 1 N/A N/A N/A Vec2d N/A N/A self x other N/A N/A self y other N/A __rsub__ N/A N/A self other N/A N/A N/A N/A isinstance other Vec2d N/A N/A N/A Vec2d N/A N/A other x N/A self x N/A N/A other y N/A self y N/A N/A hasattr other __getitem__ N/A N/A N/A Vec2d N/A N/A other N/A 0 N/A self x N/A N/A other N/A 1 N/A self y N/A N/A N/A Vec2d N/A other N/A self x N/A other N/A self y N/A __isub__ N/A N/A self other N/A N/A N/A N/A isinstance other Vec2d N/A N/A N/A self x N/A other x N/A N/A self y N/A other y N/A N/A N/A hasattr other __getitem__ N/A N/A N/A self x N/A other N/A 0 N/A N/A self y N/A other N/A 1 N/A N/A N/A self x other N/A N/A self y other N/A self N/A cpvrotate N/A N/A self other N/A N/A N/A Uses complex multiplication to rotate this vector by the other.  N/A N/A Vec2d N/A N/A N/A self x N/A other x N/A N/A self y N/A other y N/A N/A N/A self x N/A other y N/A N/A self y N/A other x N/A N/A N/A N/A Vec2d _fields_ N/A N/A x N/A ctypes c_double N/A y N/A ctypes c_double N/A cpVect Vec2d N/A STRING c_char_p cpBody N/A Structure N/A N/A N/A N/A cpBodyVelocityFunc N/A function_pointer None N/A POINTER cpBody cpVect cpFloat cpFloat N/A cpBodyPositionFunc N/A function_pointer None N/A POINTER cpBody cpFloat N/A N/A cpBody _fields_ N/A N/A velocity_func cpBodyVelocityFunc N/A position_func cpBodyPositionFunc N/A m cpFloat N/A m_inv cpFloat N/A i cpFloat N/A i_inv cpFloat N/A p cpVect N/A v cpVect N/A f cpVect N/A a cpFloat N/A w cpFloat N/A t cpFloat N/A rot cpVect N/A v_limit cpFloat N/A w_limit cpFloat N/A v_bias_private cpVect N/A w_bias_private cpFloat N/A cpBodyAlloc N/A chipmunk_lib cpBodyAlloc N/A N/A cpBodyAlloc restype N/A POINTER cpBody N/A N/A cpBodyAlloc argtypes N/A N/A cpBodyInit N/A chipmunk_lib cpBodyInit N/A N/A cpBodyInit restype N/A POINTER cpBody N/A N/A cpBodyInit argtypes N/A N/A POINTER cpBody cpFloat cpFloat N/A cpBodyNew N/A chipmunk_lib cpBodyNew N/A N/A cpBodyNew restype N/A POINTER cpBody N/A N/A cpBodyNew argtypes N/A cpFloat cpFloat N/A l chipmunk_lib N/A b N/A N/A l cpBodyNew 3 4 N/A N/A N/A b contents m N/A N/A N/A b contents p x N/A N/A N/A N/A b contents p x 3.5 N/A N/A N/A b contents m N/A N/A N/A b contents p x N/A timeit N/A operator N/A math run N/A N/A N/A N/A N/A b N/A N/A l cpBodyNew 15 17 N/A x N/A range 20000 N/A N/A s 0 N/A x N/A range 10 N/A N/A N/A b p N/A Vec2d 1 3 N/A v1 N/A N/A b contents p N/A v2 N/A Vec2d 1 3 N/A N/A b p N/A v1 N/A N/A v2 cpvrotate v1 N/A v3 N/A N/A b contents p N/A s N/A N/A v3 x N/A v3 y N/A main N/A N/A N/A N/A N/A t N/A N/A timeit Timer run() from __main__ import run N/A N/A runtime: %.2fs N/A N/A t timeit number 1 N/A N/A N/A __name__ __main__ N/A N/A doprof 0 N/A N/A doprof N/A N/A N/A main N/A N/A cProfile pstats N/A prof N/A N/A cProfile run run() profile.prof N/A stats N/A N/A pstats Stats profile.prof N/A N/A N/A stats strip_dirs N/A N/A N/A stats sort_stats cumulative time calls N/A N/A N/A stats print_stats 30