Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad For NameStore NameLoad body For NameStore NameLoad body Expr Yield TupleLoad BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Import alias If BoolOpAnd CompareNotEq NameLoad NameLoad CompareEq NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Return BinOpMult Call AttributeLoad NameLoad attr NameLoad orelse Return Call NameLoad BinOpMult Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareNotEq NameLoad NameLoad CompareNotEq NameLoad NameLoad body If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return BinOpAdd NameLoad BinOpMult Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd Call NameLoad NameLoad NameLoad Num Return Call NameLoad BinOpAdd NameLoad BinOpMult Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad orelse If BoolOpAnd CompareNotEq NameLoad NameLoad CompareNotEq NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str ImportFrom alias If CompareEq Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore BinOpMod Str Call NameLoad NameLoad Raise Call NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return IfExp Call NameLoad NameLoad NameLoad Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias alias Assign NameStore Call NameLoad ListComp CompareIn Str NameLoad comprehension NameStore NameLoad Assign NameStore IfExp BoolOpOr NameLoad Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp TupleLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call NameLoad NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str NameLoad body Return Call NameLoad NameLoad ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body Return Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad Call NameLoad NameLoad keyword Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Return NameLoad orelse Raise NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp IfExp UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad ListLoad NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Str Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpOr Call NameLoad NameLoad Str Call NameLoad NameLoad Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num orelse Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str BinOpMult Str NameLoad Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str AugAssignAdd NameStore Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Delete SubscriptDel NameLoad Index NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Yield Delete NameDel decorator_list NameLoad FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str If UnaryOpNot Call NameLoad NameLoad body ImportFrom alias For NameStore Call NameLoad Call NameLoad NameLoad Str body Assign NameStore Call NameLoad NameLoad Break orelse Assign NameStore Str Raise Call NameLoad NameLoad If NameLoad body Return Call NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A os N/A sys N/A re N/A json N/A csv contextlib contextmanager collections OrderedDict defaultdict os.path abspath dirname exists join splitext random choice shuffle Foundation NSAutoreleasePool plotdevice DeviceError readers read XMLParser N/A __all__ N/A grid random shuffled choice ordered order files read autotext _copy_attr _copy_attrs odict ddict adict grid N/A N/A cols rows colSize rowSize shuffled N/A 1 1 False N/A N/A Returns an iterator that contains coordinate tuples.

    The grid can be used to quickly create grid-like structures. A common way to use them is:
        for x, y in grid(10,10,12,12):
            rect(x,y, 10,10)
     N/A rowRange N/A xrange N/A int rows N/A colRange N/A xrange N/A int cols N/A shuffled N/A N/A rowRange N/A list rowRange N/A colRange N/A list colRange N/A N/A shuffle rowRange N/A N/A shuffle colRange N/A y rowRange N/A N/A x colRange N/A N/A N/A N/A N/A x colSize N/A y rowSize N/A random N/A N/A v1 v2 mean sd N/A None None None None N/A N/A Returns a random value.

    This function does a lot of things depending on the parameters:
    - If one or more floats is given, the random value will be a float.
    - If all values are ints, the random value will be an integer.

    - If one value is given, random returns a value from 0 to the given value.
      This value is not inclusive.
    - If two values are given, random returns a value between the two; if two
      integers are given, the two boundaries are inclusive.
     N/A random N/A N/A N/A v1 None N/A v2 None N/A N/A N/A isinstance v1 float N/A N/A N/A N/A N/A random random v1 N/A N/A N/A int N/A N/A N/A random random v1 N/A N/A N/A N/A v1 None N/A v2 None N/A N/A N/A N/A isinstance v1 float N/A isinstance v2 float N/A N/A start N/A min v1 v2 N/A end N/A max v1 v2 N/A N/A start N/A N/A N/A random random N/A end start N/A N/A start N/A min v1 v2 N/A end N/A N/A max v1 v2 1 N/A N/A int N/A start N/A N/A N/A random random N/A end start N/A N/A N/A N/A mean None N/A sd None N/A N/A N/A N/A random normalvariate mean sd N/A N/A N/A N/A random random N/A files N/A N/A path case N/A * True N/A N/A Returns a list of files.

    You can use wildcards to specify which files to pick, e.g.
        f = files('~/Pictures/*.jpg')

    For a case insensitive search, call files() with case=False
     iglob iglob N/A N/A N/A type path unicode N/A N/A N/A N/A path encode utf-8 N/A path N/A N/A N/A os path expanduser path N/A N/A list N/A iglob N/A N/A path decode utf-8 case case N/A autotext N/A N/A sourceFile N/A N/A plotdevice.util.kgp KantGenerator N/A k N/A KantGenerator sourceFile N/A N/A N/A k output N/A _as_sequence N/A N/A seq N/A N/A N/A N/A N/A hasattr seq __getitem__ N/A N/A badtype N/A ordered, shuffled, and friends only work for strings, tuples and lists (not %s) N/A type seq N/A N/A DeviceError badtype N/A N/A list seq N/A _as_before N/A N/A orig lst N/A N/A N/A N/A N/A isinstance orig basestring N/A N/A join lst N/A list lst N/A _getter N/A N/A seq names N/A N/A operator itemgetter attrgetter N/A is_dotted N/A any N/A N/A . name N/A name names N/A getter N/A N/A is_dotted N/A hasattr N/A seq N/A 0 N/A names N/A 0 attrgetter itemgetter N/A N/A getter names N/A order N/A N/A seq N/A names kwargs N/A N/A lst N/A _as_sequence seq N/A N/A N/A names N/A seq N/A N/A reordered N/A N/A it idx N/A N/A idx it N/A enumerate lst N/A N/A getter N/A _getter lst names N/A reordered N/A N/A N/A getter it idx N/A N/A idx it N/A enumerate lst N/A N/A N/A reordered sort kwargs N/A N/A N/A it N/A 1 N/A it reordered N/A ordered N/A N/A seq N/A names kwargs N/A N/A Return a sorted copy of a list or tuple, optionally using a common item or
    attr name of the elements within the sequence.

    If included, *names should be one or more strings indicating which `fields` of
    the sequence elements should be used in comparing their equality. If more than
    one name is specified, the second field will be used to break `ties' based on
    the first.

    The return value will be ordered in an ascending fashion, but can be flipped
    using the reverse=True keyword argument. N/A lst N/A _as_sequence seq N/A N/A N/A N/A kwargs get perm lst N/A N/A N/A _as_before seq N/A N/A lst N/A idx N/A idx N/A kwargs N/A perm N/A N/A N/A names N/A lst N/A N/A N/A _as_before seq N/A sorted lst kwargs N/A N/A _as_before seq N/A sorted lst key N/A _getter lst names kwargs N/A shuffled N/A N/A seq N/A N/A N/A Returns a random permutation of a list or tuple (without modifying the original) N/A lst N/A _as_sequence seq N/A N/A shuffle lst N/A N/A _as_before seq lst N/A _copy_attr N/A N/A v N/A N/A N/A N/A v None N/A N/A None N/A N/A N/A hasattr v copy N/A N/A N/A N/A v copy N/A N/A N/A isinstance v tuple N/A N/A N/A hasattr v _fields N/A N/A N/A N/A v _replace N/A N/A tuple v N/A N/A N/A isinstance v list N/A N/A N/A list v N/A N/A N/A isinstance v N/A int str unicode float bool long N/A N/A v N/A N/A DeviceError N/A Don't know how to copy '%s'. v N/A _copy_attrs N/A N/A source target attrs N/A N/A N/A attr attrs N/A N/A N/A N/A N/A setattr target attr N/A _copy_attr N/A getattr source attr N/A N/A N/A AttributeError N/A e N/A N/A N/A missing attr: %r attr N/A hasattr source attr N/A hasattr target attr N/A e N/A _flatten N/A N/A seq N/A N/A N/A N/A sum N/A N/A N/A N/A isinstance x N/A list tuple N/A x N/A list x N/A x seq N/A N/A trim_zeroes N/A N/A func N/A N/A N/A N/A N/A N/A slf N/A N/A N/A re sub \.?0+(?=[,\)\]]) N/A func slf N/A numlike N/A N/A obj N/A N/A N/A N/A N/A hasattr obj __int__ N/A hasattr obj __float__ N/A BetterRepr N/A object N/A __repr__ N/A N/A self indent N/A 2 N/A N/A result N/A %s{ N/A N/A self __class__ __name__ N/A N/A k v N/A N/A self iteritems N/A N/A N/A isinstance v BetterRepr N/A N/A vStr N/A N/A v __repr__ N/A indent 2 N/A N/A vStr N/A N/A v __repr__ N/A result N/A N/A N/A N/A N/A indent N/A N/A k __repr__ :  vStr N/A N/A N/A N/A result endswith { N/A N/A result N/A result } N/A result N/A N/A odict N/A BetterRepr OrderedDict N/A N/A Dictionary that remembers insertion order

    Normal dict objects return keys in an arbitrary order. An odict will return them in
    the order you add them. To initialize an odict and not lose the ordering in the process,
    avoid using keyword arguments and instead pass a list of (key,val) tuples:

        odict([ ('foo',12), ('bar',14), ('baz', 33) ])

    or as part of a generator expression:

        odict( (k,other[k]) for k in sorted(other.keys()) )

     N/A N/A ddict N/A BetterRepr defaultdict N/A N/A Dictionary with default factory

    Any time you access a key that was previously undefined, the factory function
    is called and a default value is inserted in the dictionary. e.g.,

        normal_dict = {}
        normal_dict['foo'].append(42) # raises a KeyError

        lst_dict = ddict(list)
        lst_dict['foo'].append(42)    # sets 'foo' to [42]

        num_dict = ddict(int)
        print num_dict['bar']         # prints '0'
        num_dict['baz'] += 2          # increments 'baz' from 0 to 2

     N/A N/A adict N/A BetterRepr dict N/A N/A A dictionary object whose items may also be accessed with dot notation.

    Items can be assigned using dot notation even if a dictionary method of the
    same name exists. Subsequently, dot notation will still reference the method,
    but the assigned value can be read out using traditional `d["name"]` syntax.
     __init__ N/A N/A self N/A args kw N/A N/A N/A N/A N/A super adict self __init__ args kw N/A N/A self __initialised True N/A __getattr__ N/A N/A self key N/A N/A N/A N/A N/A N/A self N/A key N/A N/A N/A KeyError N/A k N/A N/A AttributeError k N/A __setattr__ N/A N/A self key value N/A N/A N/A N/A N/A N/A N/A self __dict__ has_key _adict__initialised N/A N/A N/A N/A dict __setattr__ self key value N/A N/A self N/A key value N/A __delattr__ N/A N/A self key N/A N/A N/A N/A N/A N/A self N/A key N/A N/A N/A KeyError N/A k N/A N/A AttributeError k N/A N/A autorelease N/A N/A N/A N/A N/A pool N/A N/A N/A N/A NSAutoreleasePool alloc init N/A N/A N/A pool N/A contextmanager rsrc_path N/A N/A resource N/A None N/A N/A Return absolute path of the rsrc directory (or a file within it) N/A module_root N/A abspath N/A dirname N/A dirname __file__ N/A rsrc_root N/A join module_root rsrc N/A N/A N/A exists rsrc_root N/A glob glob N/A pth N/A glob N/A join module_root ../build/lib/plotdevice/rsrc N/A N/A rsrc_root N/A abspath pth N/A N/A N/A notfound Couldn't locate resources directory (try running `python setup.py build` before running from the source dist). N/A N/A RuntimeError notfound N/A resource N/A N/A N/A join rsrc_root resource N/A rsrc_root N/A