Module Expr Str ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num TupleLoad Num Num Num Num Num Num body TryExcept body Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Num Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad Num Num Num Expr Call NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num Num TupleLoad Num Num Num Num Num Num NameLoad body Assign AttributeStore NameLoad attr BinOpMult NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr BinOpMult NameLoad Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num Num Num If CompareLt AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body Assign NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad Num body Assign NameStore Num orelse Assign NameStore Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num Num Num Num TupleLoad Num Num Num Num Num Num NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num Num Num If AttributeLoad NameLoad attr body Assign NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad Num body Assign NameStore Num orelse Assign NameStore Num AugAssignSub AttributeStore NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num TupleLoad Num Num Num Num Num Num Num body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd NameLoad BinOpMult BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad BinOpMult BinOpSub NameLoad NameLoad Num BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Assign AttributeStore NameLoad attr ListComp TupleLoad BinOpSub SubscriptLoad NameLoad Index Num AttributeLoad AttributeLoad NameLoad attr attr BinOpSub SubscriptLoad NameLoad Index Num AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListComp TupleLoad BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr ListComp TupleLoad BinOpSub SubscriptLoad NameLoad Index Num NameLoad BinOpSub SubscriptLoad NameLoad Index Num NameLoad comprehension NameStore AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num TupleLoad TupleLoad Num Num Num Num Num Num Num body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad NameLoad NameLoad UnaryOpUSub NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Num Num Num If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call NameLoad Num NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad orelse If CompareEq Call NameLoad NameLoad Num body Expr Call NameLoad NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Expr Call NameLoad NameLoad orelse Expr Call NameLoad NameLoad For NameStore NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Num Expr Call NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num TupleLoad Num Num Num TupleLoad Num Num Num Num Num Num Num body Expr Str Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult NameLoad Num Assign NameStore Call NameLoad BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult NameLoad Num Assign AttributeStore NameLoad attr TupleLoad BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num NameLoad BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign AttributeStore NameLoad attr TupleLoad BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num NameLoad BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign AttributeStore NameLoad attr TupleLoad BinOpSub NameLoad BinOpMult NameLoad Num BinOpSub NameLoad BinOpMult NameLoad Num Assign AttributeStore NameLoad attr TupleLoad BinOpAdd NameLoad BinOpMult NameLoad Num BinOpAdd NameLoad BinOpMult NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call BinOpMult NameLoad Num AttributeLoad NameLoad attr Expr Call NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Num Num Num If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call NameLoad Num AttributeLoad NameLoad attr If CompareLtE AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad BinOpAdd AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr TupleLoad BinOpAdd AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults TupleLoad Num Num TupleLoad Num Num Num TupleLoad Num Num Num Num Num Num Num body Expr Str Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult NameLoad Num Assign NameStore Call NameLoad BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult NameLoad Num Assign NameStore TupleLoad BinOpSub NameLoad BinOpMult NameLoad Num BinOpSub NameLoad BinOpMult NameLoad Num Assign NameStore TupleLoad BinOpAdd NameLoad BinOpMult NameLoad Num BinOpAdd NameLoad BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num Num Num body Expr Str Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore BinOpMult SubscriptLoad NameLoad Index Num Num Assign NameStore BinOpMult SubscriptLoad NameLoad Index Num Num Assign AttributeStore NameLoad attr TupleLoad BinOpSub SubscriptLoad NameLoad Index Num NameLoad BinOpSub SubscriptLoad NameLoad Index Num NameLoad BinOpAdd SubscriptLoad NameLoad Index Num NameLoad BinOpAdd SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num BinOpMult BinOpSub SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Num BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index Num Index Num BinOpMult BinOpSub SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Num BinOpSub SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num BinOpSub SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad BinOpAdd NameLoad BinOpMult AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr BinOpAdd NameLoad BinOpMult AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad BinOpSub NameLoad BinOpMult AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr BinOpSub NameLoad BinOpMult AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad Num Num Num Num For NameStore NameLoad body If CompareLt SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If CompareGt SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If CompareLt SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If CompareGt SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return TupleLoad BinOpAdd NameLoad BinOpMult BinOpSub NameLoad NameLoad Num BinOpAdd NameLoad BinOpMult BinOpSub NameLoad NameLoad Num decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Num Num Num Num Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Num Num Assign NameStore Call NameLoad Num Num keyword Num keyword TupleLoad Num Num Num Num Assign NameStore Call NameLoad Num Num keyword Num keyword TupleLoad Num Num Num Num keyword Num keyword NameLoad Assign NameStore Call NameLoad ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num keyword TupleLoad Num Num Num Num Assign NameStore Call NameLoad TupleLoad Num Num TupleLoad Num Num keyword Num keyword TupleLoad Num Num Num Num While UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num ListLoad Num Expr Call NameLoad BinOpBitOr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A 
Implementing 2D drawing primitives using
pyglet.gl
copyright 2007 by Flavio Codeco Coelho
 __future__ division print_function unicode_literals pyglet font pyglet clock pyglet window pyglet image pyglet.gl * pyglet.window mouse pyglet.window event pyglet.window key Base N/A object N/A N/A 
    Basic attributes of all drawing primitives
     __init__ N/A N/A self x y z color stroke rotation N/A 0 N/A 0.0 0.0 0.0 1.0 0 0 N/A N/A N/A N/A N/A self rect N/A N/A N/A AttributeError N/A N/A N/A self rect N/A Rect x y 1 1 N/A N/A self visible 1 N/A N/A self z z N/A N/A self rotation rotation N/A N/A self stroke stroke N/A N/A self color color N/A N/A self q N/A gluNewQuadric N/A setLoc N/A N/A self p N/A N/A N/A N/A N/A self rect loc p N/A getLoc N/A N/A self N/A N/A N/A N/A N/A self rect loc N/A setX N/A N/A self x N/A N/A N/A N/A N/A self rect x x N/A getX N/A N/A self N/A N/A N/A N/A N/A self rect x N/A setY N/A N/A self y N/A N/A N/A N/A N/A self rect y y N/A getY N/A N/A self N/A N/A N/A N/A N/A self rect y N/A N/A loc N/A property getLoc setLoc N/A x N/A property getX setX N/A y N/A property getY setY setWidth N/A N/A self w N/A N/A N/A N/A N/A self rect width w N/A getWidth N/A N/A self N/A N/A N/A N/A N/A self rect width N/A setHeight N/A N/A self h N/A N/A N/A N/A N/A self rect height h N/A getHeight N/A N/A self N/A N/A N/A N/A N/A self rect height N/A N/A width N/A property getWidth setWidth N/A height N/A property getHeight setHeight N/A Pixel N/A Base N/A N/A  A pixel at a given x,y,z position and color.
        Pixel(x=12, y=100, z=900, color=(1,0,0,0.5))
     render N/A N/A self N/A N/A N/A 
            Draws a pixel at a given x and y with given color .
            Color = 3 or 4 arg tuple. RGB values from 0 to 1 being 1 max value (1, 1, 1) would be white
         N/A N/A glColor4f N/A self color N/A N/A glPushMatrix N/A N/A glTranslatef N/A self x N/A self y N/A N/A self z N/A N/A glBegin GL_POINTS N/A N/A glVertex3f 0.0 0.0 0.0 N/A N/A glEnd N/A N/A glPopMatrix N/A intersects N/A N/A self x y N/A N/A N/A N/A N/A x N/A self x N/A y N/A self y N/A N/A True N/A N/A Circle N/A Base N/A N/A  Circle class
        Circle(x=20, y=100, z=1, width=300, color=(1,1,0,0.3), stroke=5, rotation=0, style=GLU_FILL)
        style choices are : GLU_LINE, GLU_FILL, GLU_SILHOUETTE, GLU_POINT
     __init__ N/A N/A self x y z width color stroke rotation style N/A 10 10 0 2 N/A 0 0 0 1 0 0.0 GLU_FILL N/A N/A N/A self radius N/A width 0.5 N/A N/A self rect N/A Rect x y width width N/A N/A self style style N/A N/A self circleresolution 60 N/A N/A N/A Base __init__ self x y z color stroke rotation N/A setWidth N/A N/A self w N/A N/A N/A N/A self radius N/A w 0.5 N/A N/A N/A self rect width w N/A N/A width N/A property N/A Base getWidth setWidth render N/A N/A self N/A N/A N/A  Draw Circle
            x, y, z, width in pixel, rotation, color and line width in px
            style choices are : GLU_LINE, GLU_FILL, GLU_SILHOUETTE, GLU_POINT
            TO DO : textured circles
         N/A N/A glColor4f N/A self color N/A N/A glPushMatrix N/A N/A glTranslatef N/A self x N/A self y N/A N/A self z N/A N/A glRotatef N/A self rotation 0 0 0.1 N/A N/A N/A self radius 1 N/A N/A N/A self radius 1 N/A N/A self stroke N/A N/A inner N/A N/A self radius N/A self stroke N/A N/A inner 0 N/A N/A inner 0 N/A N/A inner 0 N/A N/A gluQuadricDrawStyle N/A self q N/A self style N/A N/A gluDisk N/A self q inner N/A self radius N/A self circleresolution 1 N/A N/A glPopMatrix N/A N/A Arc N/A Base N/A N/A  Arc class
        Arc(x=10, y=10, z=0, radius=1, start=0, sweep=1, color=(0,0,0,1), stroke=0, rotation=0.0, style=GLU_FILL)
        style choices are : GLU_LINE, GLU_FILL, GLU_SILHOUETTE, GLU_POINT
     __init__ N/A N/A self x y z radius start sweep color stroke rotation style N/A 10 10 0 1 0 1 N/A 0 0 0 1 0 0.0 GLU_FILL N/A N/A N/A N/A Base __init__ self x y z color stroke rotation N/A N/A self radius radius N/A N/A self start start N/A N/A self sweep sweep N/A N/A self style style N/A N/A self circleresolution 60 N/A render N/A N/A self N/A N/A N/A 
        Draws Arc
         N/A N/A glColor4f N/A self color N/A N/A glPushMatrix N/A N/A glTranslatef N/A self x N/A self y N/A N/A self z N/A N/A glRotatef N/A self rotation 0 0 0.1 N/A N/A self stroke N/A N/A inner N/A N/A self radius N/A self stroke N/A N/A inner 0 N/A N/A inner 0 N/A N/A inner 0 N/A N/A self start 180 N/A N/A gluQuadricDrawStyle N/A self q N/A self style N/A N/A gluPartialDisk N/A self q inner N/A self radius N/A self circleresolution 1 N/A self start N/A self sweep N/A N/A glPopMatrix N/A N/A Polygon N/A Base N/A __init__ N/A N/A self v z color stroke rotation style N/A 0 N/A 0 0 0 1 0 0.0 0 N/A N/A  polygon class
            Polygon(vertexarray=[(0, 0), (29, 100), (30, 200)], z=100, color=(0,0.3,0.1,1), stroke=0, rotation=23)
            overwrites few methods from superclass as polygons are more complex, needs to update everyvertex.
         N/A N/A self v v N/A N/A l t r b N/A calcPolygonRect v N/A N/A self rect N/A Rect N/A l N/A N/A r l 0.5 N/A t N/A N/A b t 0.5 N/A r l N/A b t N/A N/A self v2 N/A N/A N/A N/A i N/A 0 N/A N/A self rect x N/A N/A i N/A 1 N/A N/A self rect y N/A i v N/A N/A self style style N/A N/A N/A Base __init__ self N/A N/A self rect x N/A N/A self rect y z color stroke rotation N/A updateV N/A N/A self N/A N/A N/A N/A self v N/A N/A N/A N/A N/A self rect x N/A n N/A 0 N/A N/A N/A self rect y N/A n N/A 1 N/A n N/A self v2 N/A setLoc N/A N/A self p N/A N/A N/A N/A N/A self rect loc p N/A N/A N/A self updateV N/A setX N/A N/A self x N/A N/A N/A N/A N/A self rect x x N/A N/A N/A self updateV N/A setY N/A N/A self y N/A N/A N/A N/A N/A self rect y y N/A N/A N/A self updateV N/A N/A x N/A property N/A Base getX setX N/A y N/A property N/A Base getY setY N/A loc N/A property N/A Base getLoc setLoc render N/A N/A self N/A N/A N/A  Draw Polygon
            v is an array with tuple points like [(x, y), (x2, y2), (x3, y3)]
            min vertex number to draw a polygon is 3
            stroke=0 to fil with color the inside of the shape or stroke=N just to draw N-px thick outline.
            Note. It doesnt work with non convex polygons, need to implement tesselation yet
         N/A N/A l t r b N/A calcPolygonRect N/A self v N/A N/A x y N/A calcRectCenter l t r b N/A N/A N/A self drawVertex x y N/A self z N/A N/A N/A N/A i N/A 0 x N/A N/A i N/A 1 y N/A i N/A self v N/A self color N/A self stroke N/A self rotation N/A self style N/A drawVertex N/A N/A self x y z v color stroke rotation style N/A 0 N/A N/A 0 0 0 1 0 0.0 0 N/A N/A N/A glColor4f N/A self color N/A N/A glPushMatrix N/A N/A glTranslatef x y N/A z N/A N/A glRotatef N/A self rotation 0 0 0.1 N/A N/A self style N/A N/A N/A glEnable GL_LINE_STIPPLE N/A N/A glLineStipple 1 style N/A N/A self stroke N/A N/A N/A glLineWidth N/A self stroke N/A N/A glBegin GL_LINE_LOOP N/A N/A N/A N/A len v 4 N/A N/A N/A glBegin GL_QUADS N/A N/A N/A N/A len v 4 N/A N/A N/A glBegin GL_POLYGON N/A N/A N/A glBegin GL_TRIANGLES N/A p v N/A N/A N/A glVertex3f N/A p N/A 0 N/A p N/A 1 0 N/A N/A glEnd N/A N/A self style N/A N/A N/A glDisable GL_LINE_STIPPLE N/A N/A glPopMatrix N/A N/A LineRel N/A Base N/A __init__ N/A N/A self x y a b z color stroke rotation style N/A N/A 0 0 N/A 0 0 0 N/A 0 0 0 1 0 0.0 0 N/A N/A  Draws a basic line given the begining and end point (tuples), color (tuple) and stroke
            (thickness of line)
            Line( x,y, a=(1,1), b=(100,100), z=0, color=(0.2,0,0,1), stroke=10, rotation=45)
         N/A w N/A N/A b N/A 0 N/A a N/A 0 N/A h N/A N/A b N/A 1 N/A a N/A 1 N/A x N/A abs N/A N/A a N/A 0 N/A w 0.5 N/A y N/A abs N/A N/A a N/A 1 N/A h 0.5 N/A N/A self a2 N/A N/A N/A abs N/A a N/A 0 x N/A N/A abs N/A a N/A 1 y N/A N/A self b2 N/A N/A N/A abs N/A b N/A 0 x N/A N/A abs N/A b N/A 1 y N/A N/A self a N/A N/A x N/A w 0.5 N/A y N/A w 0.5 N/A N/A self b N/A N/A x N/A w 0.5 N/A y N/A w 0.5 N/A N/A self rect N/A Rect x y w h N/A N/A self style style N/A N/A N/A Base __init__ self x y z color stroke rotation N/A render N/A N/A self N/A N/A N/A 
        Draws Line
         N/A p1 N/A self a2 N/A p2 N/A self b2 N/A N/A glColor4f N/A self color N/A color N/A N/A GLfloat 4 N/A self color N/A N/A glPushMatrix N/A N/A glTranslatef N/A self x N/A self y N/A N/A self z N/A N/A glRotatef N/A self rotation 0 0 0.1 N/A N/A self style N/A N/A N/A glEnable GL_LINE_STIPPLE N/A N/A glLineStipple 1 N/A self style N/A N/A N/A self stroke 0 N/A N/A N/A self stroke 1 N/A N/A glLineWidth N/A self stroke N/A N/A glBegin GL_LINES N/A N/A glVertex2i N/A int N/A p1 N/A 0 N/A int N/A p1 N/A 1 N/A N/A glVertex2i N/A int N/A p2 N/A 0 N/A int N/A p2 N/A 1 N/A N/A glEnd N/A N/A self style N/A N/A N/A glDisable GL_LINE_STIPPLE N/A N/A glPopMatrix N/A updateAB N/A N/A self N/A N/A N/A N/A self a N/A N/A N/A self x N/A N/A self a N/A 0 N/A N/A self y N/A N/A self a N/A 0 N/A N/A self b N/A N/A N/A self x N/A N/A self b N/A 0 N/A N/A self y N/A N/A self b N/A 0 N/A setLoc N/A N/A self p N/A N/A N/A N/A N/A self rect loc p N/A N/A N/A self updateAB N/A setX N/A N/A self x N/A N/A N/A N/A N/A self rect x x N/A N/A N/A self updateAB N/A setY N/A N/A self y N/A N/A N/A N/A N/A self rect y y N/A N/A N/A self updateAB N/A N/A x N/A property N/A Base getX setX N/A y N/A property N/A Base getY setY N/A loc N/A property N/A Base getLoc setLoc N/A Line N/A LineRel N/A __init__ N/A N/A self a b z color stroke rotation style N/A N/A 0 0 N/A 0 0 0 N/A 0 0 0 1 0 0.0 0 N/A N/A  Draws a basic line given the begining and end point (tuples), color (tuple) and stroke
            (thickness of line)
            Line( a=(1,1), b=(100,100), z=20, color=(0.2,0,0,1), stroke=10, rotation=45)
         N/A w N/A N/A b N/A 0 N/A a N/A 0 N/A h N/A N/A b N/A 1 N/A a N/A 1 N/A x N/A abs N/A N/A a N/A 0 N/A w 0.5 N/A y N/A abs N/A N/A a N/A 1 N/A h 0.5 N/A a N/A N/A x N/A w 0.5 N/A y N/A h 0.5 N/A b N/A N/A x N/A w 0.5 N/A y N/A h 0.5 N/A N/A N/A LineRel __init__ self x y a b z color stroke rotation style N/A N/A Rect N/A object N/A __init__ N/A N/A self x y w h N/A 0 0 0 0 N/A N/A  rect(self, x=0,y=0,w=0,h=0)
            x,y,loc, width, height
            left,top,right,bottom
            quad ->
            --------------------
            topleft = quad[0]
            topright = quad[1]
            bottomright = quad[2]
            bottomleft = quad[3]
         N/A N/A self rect N/A x y w h N/A setRect N/A N/A self r N/A N/A N/A N/A self __x N/A r N/A 0 N/A N/A self __y N/A r N/A 1 N/A N/A self __width N/A r N/A 2 N/A N/A self __height N/A r N/A 3 N/A w N/A N/A r N/A 2 0.5 N/A h N/A N/A r N/A 3 0.5 N/A N/A self __rect N/A N/A N/A r N/A 0 w N/A N/A r N/A 1 h N/A N/A r N/A 0 w N/A N/A r N/A 1 h N/A getRect N/A N/A self N/A N/A N/A N/A self __rect N/A N/A rect N/A property getRect setRect setQuad N/A N/A self q N/A N/A N/A N/A self rect N/A N/A N/A N/A q N/A 0 N/A 0 N/A N/A N/A N/A q N/A 1 N/A 0 N/A N/A q N/A 0 N/A 0 0.5 N/A N/A N/A q N/A 0 N/A 1 N/A N/A N/A N/A q N/A 2 N/A 1 N/A N/A q N/A 0 N/A 1 0.5 N/A N/A N/A q N/A 1 N/A 0 N/A N/A q N/A 0 N/A 0 N/A N/A N/A q N/A 2 N/A 1 N/A N/A q N/A 0 N/A 1 N/A getQuad N/A N/A self N/A N/A N/A N/A N/A N/A N/A self rect N/A 0 N/A N/A self rect N/A 1 N/A N/A N/A self rect N/A 2 N/A N/A self rect N/A 1 N/A N/A N/A self rect N/A 2 N/A N/A self rect N/A 3 N/A N/A N/A self rect N/A 0 N/A N/A self rect N/A 3 N/A N/A quad N/A property getQuad setQuad setX N/A N/A self x N/A N/A N/A N/A self rect N/A x N/A self y N/A self width N/A self height N/A getX N/A N/A self N/A N/A N/A N/A self __x N/A N/A x N/A property getX setX setY N/A N/A self y N/A N/A N/A N/A self rect N/A N/A self x y N/A self width N/A self height N/A getY N/A N/A self N/A N/A N/A N/A self __y N/A N/A y N/A property getY setY setLoc N/A N/A self p N/A N/A N/A N/A self rect N/A N/A p N/A 0 N/A p N/A 1 N/A self width N/A self height N/A getLoc N/A N/A self N/A N/A N/A N/A N/A self __x N/A self __y N/A N/A loc N/A property getLoc setLoc setWidth N/A N/A self w N/A N/A N/A N/A self rect N/A N/A self x N/A self y w N/A self height N/A getWidth N/A N/A self N/A N/A N/A N/A self __width N/A N/A width N/A property getWidth setWidth setHeight N/A N/A self h N/A N/A N/A N/A self rect N/A N/A self x N/A self y N/A self width h N/A getHeight N/A N/A self N/A N/A N/A N/A self __height N/A N/A height N/A property getHeight setHeight setLeft N/A N/A self x N/A N/A N/A N/A self rect N/A N/A x N/A N/A self width 0.5 N/A self y N/A self width N/A self height N/A getLeft N/A N/A self N/A N/A N/A N/A N/A self rect N/A 0 N/A N/A left N/A property getLeft setLeft setTop N/A N/A self y N/A N/A N/A N/A self rect N/A N/A self x N/A y N/A N/A self width 0.5 N/A self width N/A self height N/A getTop N/A N/A self N/A N/A N/A N/A N/A self rect N/A 1 N/A N/A top N/A property getTop setTop setRight N/A N/A self x N/A N/A N/A N/A self rect N/A N/A x N/A N/A self width 0.5 N/A self y N/A self width N/A self height N/A getRight N/A N/A self N/A N/A N/A N/A N/A self rect N/A 2 N/A N/A right N/A property getRight setRight setBottom N/A N/A self x N/A N/A N/A N/A self rect N/A N/A self x N/A y N/A N/A self width 0.5 N/A self width N/A self height N/A getBottom N/A N/A self N/A N/A N/A N/A N/A self rect N/A 3 N/A N/A bottom N/A property getBottom setBottom N/A calcPolygonRect N/A N/A pointArray N/A N/A N/A  receives a point list and returns the rect that contains them as a tupple -> tuple left, top, right, bottom
     N/A N/A l t r b N/A 10000000 10000000 -10000000 -10000000 N/A n pointArray N/A N/A N/A N/A n N/A 0 l N/A N/A l N/A n N/A 0 N/A N/A N/A n N/A 0 r N/A N/A r N/A n N/A 0 N/A N/A N/A n N/A 1 t N/A N/A t N/A n N/A 1 N/A N/A N/A n N/A 1 b N/A N/A b N/A n N/A 1 N/A N/A l t r b N/A calcRectCenter N/A N/A l t r b N/A N/A N/A  returns rect center point -> x,y
        calcRectCenter(l,t,r,b)
     N/A N/A N/A l N/A N/A r l 0.5 N/A t N/A N/A b t 0.5 N/A N/A N/A __name__ __main__ N/A N/A random N/A win N/A N/A window Window N/A N/A glClearColor 0.8 0.8 0.8 1.0 N/A N/A glEnable GL_BLEND N/A N/A glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA N/A p N/A Pixel 10 10 N/A c N/A Circle 200 100 width 100 color N/A 0.0 0.9 0.0 1.0 N/A a N/A Arc 150 150 radius 100 color N/A 1.0 0.0 0.0 1.0 sweep 90 style GLU_FILL N/A P N/A Polygon N/A N/A 0 0 N/A 50 200 N/A 80 200 N/A 60 100 N/A 100 5 color N/A 0.3 0.2 0.5 0.7 N/A l N/A Line N/A 10 299 N/A 100 299 stroke 2 color N/A 0 0.0 1.0 1.0 N/A N/A N/A win has_exit N/A N/A N/A N/A win dispatch_events N/A col N/A N/A N/A N/A random random N/A i N/A range 3 N/A 1 N/A N/A glClear N/A GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT N/A N/A c color col N/A N/A N/A c render N/A N/A N/A p render N/A N/A N/A a render N/A N/A a rotation 1 N/A N/A N/A P render N/A N/A N/A l render N/A N/A N/A win flip