Module Expr Str ImportFrom alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad Str Expr Call NameLoad NameLoad TryExcept body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call NameLoad Str Raise Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If CompareLt Call AttributeLoad NameLoad attr NameLoad Num body Return NameLoad Assign NameStore Num While CompareLt NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad TupleLoad Str Str body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num attr NameLoad If CompareGt NameLoad Num body Assign NameStore BinOpAdd NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Return Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr Assign NameStore BinOpAdd NameLoad Num Return NameLoad decorator_list Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Str Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice attr Return CompareIsNot Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad body Return NameLoad If Call NameLoad BinOpMod Str NameLoad body Return BinOpMod Str NameLoad Assign NameStore ListLoad Assign NameStore NameLoad If NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad If UnaryOpNot Call NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign TupleStore NameStore NameStore TupleLoad Str Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareGt NameLoad Num CompareEq SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore TupleLoad NameLoad NameLoad NameLoad While CompareLt NameLoad BinOpAdd NameLoad Call NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num body Assign NameStore BinOpAdd NameLoad Num If CompareGt NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice BinOpSub NameLoad Num NameLoad If CompareGt NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice BinOpSub NameLoad Num NameLoad If BoolOpAnd CompareEq SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Call NameLoad NameLoad NameLoad UnaryOpNot BoolOpAnd CompareEq NameLoad NameLoad CompareNotEq NameLoad NameLoad body Return TupleLoad NameLoad NameLoad BinOpSub BinOpAdd NameLoad Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num Return TupleLoad NameLoad NameLoad Call NameLoad NameLoad decorator_list
N/A N/A 
utilities for larch
 __future__ print_function N/A re N/A sys PrintExceptErr N/A N/A err_str print_trace N/A True N/A N/A  print error on exceptions N/A N/A print 
*********************************** N/A N/A print err_str N/A N/A N/A N/A print N/A Error: %s N/A sys exc_type N/A N/A etype evalue tback N/A N/A sys exc_info N/A N/A print_trace False N/A N/A tback N/A N/A N/A sys excepthook etype evalue tback N/A N/A N/A N/A N/A print Error printing exception error!! N/A N/A N/A print ***********************************
 N/A strip_comments N/A N/A sinp char N/A # N/A N/A find character in a string, skipping over quoted text N/A N/A N/A N/A sinp find char 0 N/A N/A sinp N/A i 0 N/A N/A i N/A len sinp N/A N/A tchar N/A sinp N/A i N/A N/A tchar N/A " ' N/A N/A eoc N/A N/A N/A sinp N/A N/A i 1 find tchar N/A N/A eoc 0 N/A N/A i N/A i eoc N/A N/A N/A tchar char N/A N/A N/A N/A N/A sinp N/A i rstrip N/A i N/A i 1 N/A sinp N/A N/A RESERVED_WORDS N/A and as assert break class continue def del elif else eval except exec execfile finally for from global if import in is lambda not or pass print raise return try while with group end endwhile endif endfor endtry enddef True False None N/A NAME_MATCH N/A N/A N/A re compile [a-zA-Z_][a-zA-Z0-9_]*(\.[a-zA-Z_][a-zA-Z0-9_]*)*$ match N/A VALID_SNAME_CHARS abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_ N/A VALID_NAME_CHARS N/A .%s VALID_SNAME_CHARS isValidName N/A N/A name N/A N/A N/A input is a valid name N/A N/A name RESERVED_WORDS N/A N/A False N/A tnam N/A N/A N/A name N/A lower N/A N/A N/A NAME_MATCH tnam None N/A fixName N/A N/A name allow_dot N/A True N/A N/A try to fix string to be a valid name N/A N/A isValidName name N/A N/A name N/A N/A isValidName N/A _%s name N/A N/A N/A _%s name N/A chars N/A N/A valid_chars VALID_SNAME_CHARS N/A allow_dot N/A N/A valid_chars VALID_NAME_CHARS N/A s name N/A N/A N/A s valid_chars N/A N/A s _ N/A N/A N/A chars append s N/A name N/A N/A join chars N/A N/A N/A isValidName name N/A N/A name N/A _%s name N/A name N/A isNumber N/A N/A num N/A N/A N/A input is a number N/A N/A N/A cnum N/A complex num N/A True N/A N/A N/A ValueError N/A N/A False N/A isLiteralStr N/A N/A inp N/A N/A N/A is a literal string N/A N/A N/A N/A N/A inp startswith ' N/A N/A inp endswith ' N/A N/A N/A inp startswith " N/A N/A inp endswith " N/A find_delims N/A N/A s delim match N/A " None N/A N/A find matching delimeters (quotes, braces, etc) in a string.
    returns
      True, index1, index2 if a match is found
      False, index1, len(s) if a match is not found
    the delimiter can be set with the keyword arg delim,
    and the matching delimiter with keyword arg match.

    if match is None (default), match is set to delim.

    >>> find_delims(mystr, delim=":")
    >>> find_delims(mystr, delim='<', match='>')
     N/A N/A esc dbesc N/A \ \\ N/A N/A match None N/A N/A match delim N/A j N/A N/A s find delim N/A N/A N/A j -1 N/A N/A s N/A j N/A j N/A len delim delim N/A N/A N/A p1 p2 k N/A None None j N/A N/A k N/A j N/A len N/A s N/A N/A j 1 N/A N/A k N/A k 1 N/A N/A k 0 N/A N/A p1 N/A s N/A N/A k 1 k N/A N/A k 1 N/A N/A p2 N/A s N/A N/A k 2 k N/A N/A N/A N/A s N/A k N/A k N/A len match match N/A N/A N/A p1 esc N/A p2 dbesc N/A N/A N/A True j N/A N/A k N/A len match 1 N/A p1 N/A s N/A k N/A k 1 N/A N/A False j N/A len s N/A