Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Import alias Assign NameStore CompareIn Str AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Str For NameStore Call NameLoad Num Call AttributeLoad NameLoad attr body If UnaryOpNot CompareIs AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Raise Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Return SubscriptLoad Call NameLoad Index Num decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Call NameLoad decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad decorator_list decorator_list Assign NameStore Dict Assign NameStore Num FunctionDef arguments args defaults body Expr Str If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num If CompareGtE NameLoad Num body Return NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr While BoolOpAnd NameLoad UnaryOpNot SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Slice Num If NameLoad body If BoolOpAnd SubscriptLoad NameLoad Index Num Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr body Assign NameStore ListLoad orelse Assign NameStore ListLoad Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListComp NameLoad comprehension NameStore NameLoad NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr If NameLoad body For NameStore Call NameLoad Call NameLoad NameLoad body If SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad Return Call AttributeLoad Str attr BinOpAdd NameLoad NameLoad Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad Str body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Str If CompareGtE Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore NameLoad orelse Assign NameStore NameLoad If CompareGtE Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str orelse Assign NameStore UnaryOpNot Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body If NameLoad body If BoolOpAnd BoolOpOr BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad BoolOpAnd UnaryOpNot NameLoad CompareNotEq NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num If NameLoad body AugAssignAdd NameStore BinOpMult NameLoad Call NameLoad NameLoad orelse Assign NameStore BinOpAdd BinOpMult NameLoad Call NameLoad NameLoad NameLoad If BoolOpAnd CompareGt BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad NameLoad CompareLtE BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Str If CompareGtE BinOpAdd Call NameLoad NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore NameLoad orelse AugAssignAdd NameStore Str While CompareGtE BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore NameLoad If NameLoad body AugAssignAdd NameStore BinOpAdd NameLoad Str If BoolOpOr BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad BoolOpAnd UnaryOpNot NameLoad CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If CompareEq Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIs Call NameLoad NameLoad Str NameLoad NameLoad body If CompareEq NameLoad Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num While CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad NameLoad Index Num If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Assign SubscriptStore AttributeLoad NameLoad attr Index Str Dict Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad ListLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad ListLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body For NameStore NameLoad body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body For NameStore NameLoad body If BoolOpOr CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body If CompareEq NameLoad AttributeLoad NameLoad attr body TryExcept body Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad Call NameLoad Str body Raise Call NameLoad Str If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str If BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad SubscriptLoad NameLoad Index NameLoad attr UnaryOpNot NameLoad body Assign TupleStore NameStore NameStore Call NameLoad If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad CompareNotEq Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Return Raise Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad SubscriptLoad NameLoad Index NameLoad attr UnaryOpNot NameLoad body Raise Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Global identifier Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Raise Call NameLoad NameLoad Return AttributeLoad SubscriptLoad NameLoad Index NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad NameLoad Index NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Raise Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Delete SubscriptDel NameLoad Index NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body While CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad NameLoad body Raise Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareIn NameLoad Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Continue If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Str NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad Num Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareGtE Call AttributeLoad NameLoad attr Str Num body Continue If BoolOpAnd Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Call AttributeLoad BinOpAdd Str NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMod Str NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Call AttributeLoad BinOpAdd Str NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMod Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str If CompareEq Call NameLoad NameLoad Num body AugAssignAdd NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore SubscriptLoad NameLoad Slice Num While NameLoad body TryExcept body If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Break handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpOr CompareEq SubscriptLoad NameLoad Index NameLoad BinOpAdd Str AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index NameLoad BinOpAdd Str AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Break orelse Raise Call NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr GeneratorExp BinOpAdd Str NameLoad comprehension NameStore NameLoad Continue If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Num orelse Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Num If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Raise Call NameLoad NameLoad NameLoad If NameLoad body If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num NameLoad orelse Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd ListLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body If BoolOpAnd CompareNotEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad CompareNotEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Continue If CompareIn NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Str If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd BinOpMod Str AttributeLoad NameLoad attr Str orelse AugAssignAdd NameStore BinOpAdd BinOpMod Str AttributeLoad NameLoad attr Str AugAssignAdd NameStore Str If AttributeLoad NameLoad attr body AugAssignAdd NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword BinOpAdd NameLoad Str keyword NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Str AugAssignAdd NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr keyword BinOpAdd NameLoad Str If AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore Str AugAssignAdd NameStore Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Num For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpOr CompareIs NameLoad NameLoad CompareGtE NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Slice BinOpAdd Call NameLoad NameLoad NameLoad Num Assign NameStore NameLoad Break orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad Call NameLoad Str body If Call AttributeLoad NameLoad attr Str body Return Num orelse If CompareEq NameLoad Str body Return Num orelse If Call AttributeLoad NameLoad attr Str body Return Num orelse If CompareEq NameLoad Str body Return Num orelse Return Num Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad Str attr orelse If Call AttributeLoad NameLoad attr Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad SubscriptLoad NameLoad Slice Call NameLoad Str attr orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr body Pass orelse If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Pass orelse If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad While NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num If Call AttributeLoad NameLoad attr NameLoad body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Break If UnaryOpNot Call AttributeLoad NameLoad attr Str body If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot SubscriptLoad AttributeLoad NameLoad attr Index Str body Break If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore ListComp TupleLoad AttributeLoad NameLoad attr NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore CompareIn NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Num body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad 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 ListLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return CompareLt Call NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return NameLoad If AttributeLoad NameLoad attr body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body If NameLoad body Return Call NameLoad Str orelse Return Call NameLoad Str Return Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return Str If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Return BinOpMod Str AttributeLoad NameLoad attr orelse Return BinOpMod Str AttributeLoad NameLoad attr orelse If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIs NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str If NameLoad body Expr Call NameLoad NameLoad Str Str NameLoad Expr Call NameLoad NameLoad Str NameLoad NameLoad Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Str NameLoad NameLoad Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd TupleLoad NameLoad Call NameLoad NameLoad TryExcept body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call NameLoad NameLoad Lambda arguments args NameParam defaults CompareIsNot NameLoad NameLoad keyword BinOpMod Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Expr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Expr Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Raise Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIn NameLoad NameLoad body Expr Call NameLoad ListLoad NameLoad keyword NameLoad keyword NameLoad Return Expr Call NameLoad ListLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If CompareEq NameLoad SubscriptLoad Call NameLoad Index Num body Expr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq Call NameLoad NameLoad NameLoad body If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str Str body Return NameLoad orelse If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str Str body Return NameLoad Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad NameLoad body Return NameLoad Raise Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str Num Str keyword Str keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call NameLoad NameLoad Print BoolOpOr NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num If NameLoad body Print Str Print NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str Num Str keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Assign NameStore Call AttributeLoad NameLoad attr Print BoolOpOr NameLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num If NameLoad body Print Str Print NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return BoolOpOr BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareLt NameLoad AttributeLoad NameLoad attr BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareGt NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr TupleLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad orelse If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr TupleLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad orelse If CompareIsNot NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str If CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Num If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Str CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Num Return Call NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Assign NameStore BoolOpOr NameLoad ListLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad Str NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assert NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return NameLoad orelse If CompareEq NameLoad Str body Return ListLoad orelse Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Str Call NameLoad Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Str Call NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Return Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr For AttributeStore NameLoad attr NameLoad body If NameLoad body AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Expr Call NameLoad Call NameLoad Expr Call NameLoad Call NameLoad Expr Call NameLoad Call NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Str Str Str NameLoad Expr Call NameLoad Str Str Str NameLoad
N/A N/A This module is used to define and parse command line flags.

This module defines a *distributed* flag-definition policy: rather than
an application having to define all flags in or near main(), each python
module defines flags that are useful to it.  When one python module
imports another, it gains access to the other's flags.  (This is
implemented by having all modules share a common, global registry object
containing all the flag information.)

Flags are defined through the use of one of the DEFINE_xxx functions.
The specific function used determines how the flag is parsed, checked,
and optionally type-converted, when it's seen on the command line.


IMPLEMENTATION: DEFINE_* creates a 'Flag' object and registers it with a
'FlagValues' object (typically the global FlagValues FLAGS, defined
here).  The 'FlagValues' object can scan the command line arguments and
pass flag arguments to the corresponding 'Flag' objects for
value-checking and type conversion.  The converted flag values are
available as attributes of the 'FlagValues' object.

Code can access the flag through a FlagValues object, for instance
gflags.FLAGS.myflag.  Typically, the __main__ module passes the command
line arguments to gflags.FLAGS for parsing.

At bottom, this module calls getopt(), so getopt functionality is
supported, including short- and long-style flags, and the use of -- to
terminate flags.

Methods defined by the flag module will throw 'FlagsError' exceptions.
The exception argument will be a human-readable string.


FLAG TYPES: This is a list of the DEFINE_*'s that you can do.  All flags
take a name, default value, help-string, and optional 'short' name
(one-letter name).  Some flags have other arguments, which are described
with the flag.

DEFINE_string: takes any input, and interprets it as a string.

DEFINE_bool or
DEFINE_boolean: typically does not take an argument: say --myflag to
                set FLAGS.myflag to true, or --nomyflag to set
                FLAGS.myflag to false.  Alternately, you can say
                   --myflag=true  or --myflag=t or --myflag=1  or
                   --myflag=false or --myflag=f or --myflag=0

DEFINE_float: takes an input and interprets it as a floating point
              number.  Takes optional args lower_bound and upper_bound;
              if the number specified on the command line is out of
              range, it will raise a FlagError.

DEFINE_integer: takes an input and interprets it as an integer.  Takes
                optional args lower_bound and upper_bound as for floats.

DEFINE_enum: takes a list of strings which represents legal values.  If
             the command-line value is not in this list, raise a flag
             error.  Otherwise, assign to FLAGS.flag as a string.

DEFINE_list: Takes a comma-separated list of strings on the commandline.
             Stores them in a python list object.

DEFINE_spaceseplist: Takes a space-separated list of strings on the
                     commandline.  Stores them in a python list object.
                     Example: --myspacesepflag "foo bar baz"

DEFINE_multistring: The same as DEFINE_string, except the flag can be
                    specified more than once on the commandline.  The
                    result is a python list object (list of strings),
                    even if the flag is only on the command line once.

DEFINE_multi_int: The same as DEFINE_integer, except the flag can be
                  specified more than once on the commandline.  The
                  result is a python list object (list of ints), even if
                  the flag is only on the command line once.


SPECIAL FLAGS: There are a few flags that have special meaning:
   --help          prints a list of all the flags in a human-readable fashion
   --helpshort     prints a list of all key flags (see below).
   --helpxml       prints a list of all flags, in XML format.  DO NOT parse
                   the output of --help and --helpshort.  Instead, parse
                   the output of --helpxml.  For more info, see
                   "OUTPUT FOR --helpxml" below.
   --flagfile=foo  read flags from file foo.
   --undefok=f1,f2 ignore unrecognized option errors for f1,f2.
                   For boolean flags, you should use --undefok=boolflag, and
                   --boolflag and --noboolflag will be accepted.  Do not use
                   --undefok=noboolflag.
   --              as in getopt(), terminates flag-processing


FLAGS VALIDATORS: If your program:
  - requires flag X to be specified
  - needs flag Y to match a regular expression
  - or requires any more general constraint to be satisfied
then validators are for you!

Each validator represents a constraint over one flag, which is enforced
starting from the initial parsing of the flags and until the program
terminates.

Also, lower_bound and upper_bound for numerical flags are enforced using flag
validators.

Howto:
If you want to enforce a constraint over one flag, use

gflags.RegisterValidator(flag_name,
                        checker,
                        message='Flag validation failed',
                        flag_values=FLAGS)

After flag values are initially parsed, and after any change to the specified
flag, method checker(flag_value) will be executed. If constraint is not
satisfied, an IllegalFlagValue exception will be raised. See
RegisterValidator's docstring for a detailed explanation on how to construct
your own checker.


EXAMPLE USAGE:

FLAGS = gflags.FLAGS

gflags.DEFINE_integer('my_version', 0, 'Version number.')
gflags.DEFINE_string('filename', None, 'Input file name', short_name='f')

gflags.RegisterValidator('my_version',
                        lambda value: value % 2 == 0,
                        message='--my_version must be divisible by 2')
gflags.MarkFlagAsRequired('filename')


NOTE ON --flagfile:

Flags may be loaded from text files in addition to being specified on
the commandline.

Any flags you don't feel like typing, throw them in a file, one flag per
line, for instance:
   --myflag=myvalue
   --nomyboolean_flag
You then specify your file with the special flag '--flagfile=somefile'.
You CAN recursively nest flagfile= tokens OR use multiple files on the
command line.  Lines beginning with a single hash '#' or a double slash
'//' are comments in your flagfile.

Any flagfile=<file> will be interpreted as having a relative path from
the current working directory rather than from the place the file was
included from:
   myPythonScript.py --flagfile=config/somefile.cfg

If somefile.cfg includes further --flagfile= directives, these will be
referenced relative to the original CWD, not from the directory the
including flagfile was found in!

The caveat applies to people who are including a series of nested files
in a different dir than they are executing out of.  Relative path names
are always from CWD, not from the directory of the parent include
flagfile. We do now support '~' expanded directory names.

Absolute path names ALWAYS work!


EXAMPLE USAGE:


  FLAGS = gflags.FLAGS

  # Flag names are globally defined!  So in general, we need to be
  # careful to pick names that are unlikely to be used by other libraries.
  # If there is a conflict, we'll get an error at import time.
  gflags.DEFINE_string('name', 'Mr. President', 'your name')
  gflags.DEFINE_integer('age', None, 'your age in years', lower_bound=0)
  gflags.DEFINE_boolean('debug', False, 'produces debugging output')
  gflags.DEFINE_enum('gender', 'male', ['male', 'female'], 'your gender')

  def main(argv):
    try:
      argv = FLAGS(argv)  # parse flags
    except gflags.FlagsError, e:
      print '%s\nUsage: %s ARGS\n%s' % (e, sys.argv[0], FLAGS)
      sys.exit(1)
    if FLAGS.debug: print 'non-flag arguments:', argv
    print 'Happy Birthday', FLAGS.name
    if FLAGS.age is not None:
      print 'You are a %d year old %s' % (FLAGS.age, FLAGS.gender)

  if __name__ == '__main__':
    main(sys.argv)


KEY FLAGS:

As we already explained, each module gains access to all flags defined
by all the other modules it transitively imports.  In the case of
non-trivial scripts, this means a lot of flags ...  For documentation
purposes, it is good to identify the flags that are key (i.e., really
important) to a module.  Clearly, the concept of "key flag" is a
subjective one.  When trying to determine whether a flag is key to a
module or not, assume that you are trying to explain your module to a
potential user: which flags would you really like to mention first?

We'll describe shortly how to declare which flags are key to a module.
For the moment, assume we know the set of key flags for each module.
Then, if you use the app.py module, you can use the --helpshort flag to
print only the help for the flags that are key to the main module, in a
human-readable format.

NOTE: If you need to parse the flag help, do NOT use the output of
--help / --helpshort.  That output is meant for human consumption, and
may be changed in the future.  Instead, use --helpxml; flags that are
key for the main module are marked there with a <key>yes</key> element.

The set of key flags for a module M is composed of:

1. Flags defined by module M by calling a DEFINE_* function.

2. Flags that module M explictly declares as key by using the function

     DECLARE_key_flag(<flag_name>)

3. Key flags of other modules that M specifies by using the function

     ADOPT_module_key_flags(<other_module>)

   This is a "bulk" declaration of key flags: each flag that is key for
   <other_module> becomes key for the current module too.

Notice that if you do not use the functions described at points 2 and 3
above, then --helpshort prints information only about the flags defined
by the main module of our script.  In many cases, this behavior is good
enough.  But if you move part of the main module code (together with the
related flags) into a different module, then it is nice to use
DECLARE_key_flag / ADOPT_module_key_flags and make sure --helpshort
lists all relevant flags (otherwise, your code refactoring may confuse
your users).

Note: each of DECLARE_key_flag / ADOPT_module_key_flags has its own
pluses and minuses: DECLARE_key_flag is more targeted and may lead a
more focused --helpshort documentation.  ADOPT_module_key_flags is good
for cases when an entire module is considered key to the current script.
Also, it does not require updates to client scripts when a new flag is
added to the module.


EXAMPLE USAGE 2 (WITH KEY FLAGS):

Consider an application that contains the following three files (two
auxiliary modules and a main module)

File libfoo.py:

  import gflags

  gflags.DEFINE_integer('num_replicas', 3, 'Number of replicas to start')
  gflags.DEFINE_boolean('rpc2', True, 'Turn on the usage of RPC2.')

  ... some code ...

File libbar.py:

  import gflags

  gflags.DEFINE_string('bar_gfs_path', '/gfs/path',
                      'Path to the GFS files for libbar.')
  gflags.DEFINE_string('email_for_bar_errors', 'bar-team@google.com',
                      'Email address for bug reports about module libbar.')
  gflags.DEFINE_boolean('bar_risky_hack', False,
                       'Turn on an experimental and buggy optimization.')

  ... some code ...

File myscript.py:

  import gflags
  import libfoo
  import libbar

  gflags.DEFINE_integer('num_iterations', 0, 'Number of iterations.')

  # Declare that all flags that are key for libfoo are
  # key for this module too.
  gflags.ADOPT_module_key_flags(libfoo)

  # Declare that the flag --bar_gfs_path (defined in libbar) is key
  # for this module.
  gflags.DECLARE_key_flag('bar_gfs_path')

  ... some code ...

When myscript is invoked with the flag --helpshort, the resulted help
message lists information about all the key flags for myscript:
--num_iterations, --num_replicas, --rpc2, and --bar_gfs_path.

Of course, myscript uses all the flags declared by it (in this case,
just --num_replicas) or by any of the modules it transitively imports
(e.g., the modules libfoo, libbar).  E.g., it can access the value of
FLAGS.bar_risky_hack, even if --bar_risky_hack is not declared as a key
flag for myscript.


OUTPUT FOR --helpxml:

The --helpxml flag generates output with the following structure:

<?xml version="1.0"?>
<AllFlags>
  <program>PROGRAM_BASENAME</program>
  <usage>MAIN_MODULE_DOCSTRING</usage>
  (<flag>
    [<key>yes</key>]
    <file>DECLARING_MODULE</file>
    <name>FLAG_NAME</name>
    <meaning>FLAG_HELP_MESSAGE</meaning>
    <default>DEFAULT_FLAG_VALUE</default>
    <current>CURRENT_FLAG_VALUE</current>
    <type>FLAG_TYPE</type>
    [OPTIONAL_ELEMENTS]
  </flag>)*
</AllFlags>

Notes:

1. The output is intentionally similar to the output generated by the
C++ command-line flag library.  The few differences are due to the
Python flags that do not have a C++ equivalent (at least not yet),
e.g., DEFINE_list.

2. New XML elements may be added in the future.

3. DEFAULT_FLAG_VALUE is in serialized form, i.e., the string you can
pass for this flag on the command-line.  E.g., for a flag defined
using DEFINE_list, this field may be foo,bar, not ['foo', 'bar'].

4. CURRENT_FLAG_VALUE is produced using str().  This means that the
string 'false' will be represented in the same way as the boolean
False.  Using repr() would have removed this ambiguity and simplified
parsing, but would have broken the compatibility with the C++
command-line flags.

5. OPTIONAL_ELEMENTS describe elements relevant for certain kinds of
flags: lower_bound, upper_bound (for flags that specify bounds),
enum_value (for enum flags), list_separator (for flags that consist of
a list of values, separated by a special token).

6. We do not provide any example here: please use --helpxml instead.

This module requires at least python 2.2.1 to run.
 N/A cgi N/A getopt N/A os N/A re N/A string N/A struct N/A sys N/A N/A N/A fcntl N/A N/A N/A ImportError N/A N/A fcntl None N/A N/A N/A termios N/A N/A N/A ImportError N/A N/A termios None N/A gflags_validators N/A _RUNNING_PYCHECKER N/A pychecker.python N/A sys modules _GetCallingModuleObjectAndName N/A N/A N/A N/A N/A Returns the module that's calling into this module.

  We generally use this function to get the name of the module calling a
  DEFINE_foo... function.
   N/A depth N/A range 1 N/A N/A sys getrecursionlimit N/A N/A N/A N/A N/A N/A N/A sys _getframe depth f_globals N/A globals N/A N/A globals_for_frame N/A N/A N/A sys _getframe depth f_globals N/A N/A module module_name N/A _GetModuleObjectAndName globals_for_frame N/A N/A module_name None N/A N/A N/A module module_name N/A N/A AssertionError No module was found N/A _GetCallingModule N/A N/A N/A N/A N/A Returns the name of the module that's calling into this module. N/A N/A N/A _GetCallingModuleObjectAndName N/A 1 N/A _GetThisModuleObjectAndName N/A N/A N/A N/A N/A Returns: (module object, module name) for this module. N/A N/A _GetModuleObjectAndName N/A globals N/A FlagsError N/A Exception N/A N/A The base class for all flags errors. N/A N/A DuplicateFlag N/A FlagsError N/A N/A Raised if there is a flag naming conflict. N/A N/A CantOpenFlagFileError N/A FlagsError N/A N/A Raised if flagfile fails to open: doesn't exist, wrong permissions, etc. N/A N/A DuplicateFlagCannotPropagateNoneToSwig N/A DuplicateFlag N/A N/A Special case of DuplicateFlag -- SWIG flag value can't be set to None.

  This can be raised when a duplicate flag is created. Even if allow_override is
  True, we still abort if the new value is None, because it's currently
  impossible to pass None default value back to SWIG. See FlagValues.SetDefault
  for details.
   N/A N/A DuplicateFlagError N/A DuplicateFlag N/A N/A A DuplicateFlag whose message cites the conflicting definitions.

  A DuplicateFlagError conveys more information than a DuplicateFlag,
  namely the modules where the conflicting definitions occur. This
  class was created to avoid breaking external modules which depend on
  the existing DuplicateFlags interface.
   __init__ N/A N/A self flagname flag_values other_flag_values N/A None N/A N/A Create a DuplicateFlagError.

    Args:
      flagname: Name of the flag being redefined.
      flag_values: FlagValues object containing the first definition of
          flagname.
      other_flag_values: If this argument is not None, it should be the
          FlagValues object where the second definition of flagname occurs.
          If it is None, we assume that we're being called when attempting
          to create the flag a second time, and we use the module calling
          this one as the source of the second definition.
     N/A N/A self flagname flagname N/A first_module N/A N/A flag_values FindModuleDefiningFlag flagname default <unknown> N/A N/A other_flag_values None N/A N/A second_module N/A _GetCallingModule N/A N/A second_module N/A N/A other_flag_values FindModuleDefiningFlag flagname default <unknown> N/A msg N/A The flag '%s' is defined twice. First from %s, Second from %s N/A N/A self flagname first_module second_module N/A N/A N/A DuplicateFlag __init__ self msg N/A N/A IllegalFlagValue N/A FlagsError N/A N/A The flag command line argument is illegal. N/A N/A UnrecognizedFlag N/A FlagsError N/A N/A Raised if a flag is unrecognized. N/A N/A UnrecognizedFlagError N/A UnrecognizedFlag N/A __init__ N/A N/A self flagname flagvalue N/A N/A N/A N/A self flagname flagname N/A N/A self flagvalue flagvalue N/A N/A N/A UnrecognizedFlag __init__ self N/A Unknown command line flag '%s' flagname N/A N/A N/A _exported_flags N/A N/A _help_width 80 GetHelpWidth N/A N/A N/A N/A N/A Returns: an integer, the width of help lines that is used in TextWrap. N/A N/A N/A N/A N/A N/A sys stdout isatty N/A termios None N/A fcntl None N/A N/A _help_width N/A N/A N/A data N/A N/A fcntl ioctl N/A sys stdout N/A termios TIOCGWINSZ 1234 N/A columns N/A N/A N/A struct unpack hh data N/A 1 N/A N/A columns 40 N/A N/A columns N/A N/A int N/A N/A os getenv COLUMNS _help_width N/A N/A N/A N/A TypeError IOError N/A struct error N/A N/A _help_width N/A CutCommonSpacePrefix N/A N/A text N/A N/A N/A Removes a common space prefix from the lines of a multiline text.

  If the first line does not start with a space, it is left as it is and
  only in the remaining lines a common space prefix is being searched
  for. That means the first line will stay untouched. This is especially
  useful to turn doc strings into help texts. This is because some
  people prefer to have the doc comment start already after the
  apostrophe and then align the following lines while others have the
  apostrophes on a separate line.

  The function also drops trailing empty lines and ignores empty lines
  following the initial content line while calculating the initial
  common whitespace.

  Args:
    text: text to work on

  Returns:
    the resulting text
   N/A text_lines N/A N/A text splitlines N/A N/A text_lines N/A N/A text_lines N/A -1 N/A N/A text_lines N/A text_lines N/A -1 N/A text_lines N/A N/A N/A N/A text_lines N/A 0 N/A N/A N/A N/A text_lines N/A 0 N/A 0 isspace N/A N/A text_first_line N/A N/A N/A text_first_line N/A N/A N/A text_lines pop 0 N/A common_prefix N/A N/A N/A os path commonprefix N/A line N/A line text_lines line N/A space_prefix_len N/A N/A len common_prefix N/A len N/A N/A common_prefix lstrip N/A space_prefix_len N/A N/A index N/A xrange N/A len text_lines N/A N/A N/A text_lines N/A index N/A N/A N/A text_lines N/A index N/A N/A text_lines N/A index N/A space_prefix_len N/A N/A N/A join N/A text_first_line text_lines N/A N/A TextWrap N/A N/A text length indent firstline_indent tabs N/A None None N/A N/A Wraps a given text to a maximum line length and returns it.

  We turn lines that only contain whitespace into empty lines.  We keep
  new lines and tabs (e.g., we do not treat tabs as spaces).

  Args:
    text:             text to wrap
    length:           maximum length of a line, includes indentation
                      if this is None then use GetHelpWidth()
    indent:           indent for all but first line
    firstline_indent: indent for first line; if None, fall back to indent
    tabs:             replacement for tabs

  Returns:
    wrapped text

  Raises:
    FlagsError: if indent not shorter than length
    FlagsError: if firstline_indent not shorter than length
   N/A N/A length None N/A N/A length N/A GetHelpWidth N/A N/A indent None N/A N/A indent N/A N/A N/A len indent length N/A N/A N/A FlagsError Indent must be shorter than length N/A N/A firstline_indent None N/A N/A firstline_indent N/A line indent N/A N/A line firstline_indent N/A N/A N/A len firstline_indent length N/A N/A N/A FlagsError First line indent must be shorter than length N/A N/A N/A tabs N/A tabs N/A N/A text N/A N/A text replace N/A N/A tabs_are_whitespace N/A N/A N/A tabs strip N/A line_regex N/A N/A re compile ([ ]*)(	*)([^ 	]+) N/A re MULTILINE N/A result N/A N/A text_line N/A N/A text splitlines N/A N/A old_result_len N/A len result N/A N/A spaces current_tabs word N/A N/A line_regex findall N/A N/A text_line rstrip N/A N/A current_tabs N/A N/A N/A N/A N/A result N/A line indent N/A N/A result N/A line firstline_indent N/A N/A line N/A -1 N/A N/A line N/A line N/A -1 N/A tabs_are_whitespace N/A N/A line N/A tabs N/A len current_tabs N/A N/A word N/A N/A tabs N/A len current_tabs word N/A N/A N/A N/A N/A len line N/A len word length N/A N/A N/A len indent N/A len word length N/A N/A N/A N/A result append N/A N/A line rstrip N/A line N/A indent word N/A word N/A N/A N/A N/A len line 1 length N/A N/A N/A N/A result append N/A N/A line rstrip N/A line indent N/A N/A line N/A N/A N/A N/A len line N/A len word length N/A N/A line word N/A N/A N/A result append N/A line N/A length N/A word N/A line N/A length N/A line indent N/A word N/A N/A line N/A word N/A N/A N/A result N/A line indent N/A N/A result N/A line firstline_indent N/A N/A N/A N/A result append N/A N/A line rstrip N/A N/A N/A N/A len result old_result_len N/A N/A N/A N/A result append N/A line indent N/A N/A N/A join result N/A DocToHelp N/A N/A doc N/A N/A N/A Takes a __doc__ string and reformats it as help. N/A doc N/A N/A doc strip N/A whitespace_only_line N/A N/A re compile ^[ 	]+$ N/A re M N/A doc N/A N/A whitespace_only_line sub doc N/A doc N/A CutCommonSpacePrefix doc N/A doc N/A N/A re sub (?<=\S)
(?=\S) doc N/A re M N/A doc N/A _GetModuleObjectAndName N/A N/A globals_dict N/A N/A N/A Returns the module that defines a global environment, and its name.

  Args:
    globals_dict: A dictionary that should correspond to an environment
      providing the values of the globals.

  Returns:
    A pair consisting of (1) module object and (2) module name (a
    string).  Returns (None, None) if the module could not be
    identified.
   N/A N/A name module N/A N/A N/A sys modules items N/A N/A N/A N/A getattr module __dict__ None globals_dict N/A N/A N/A name __main__ N/A N/A name N/A N/A sys argv N/A 0 N/A N/A module name N/A N/A None None N/A _GetMainModule N/A N/A N/A N/A N/A Returns: string, name of the module from which execution started. N/A deepest_frame N/A N/A sys _getframe 0 N/A N/A N/A deepest_frame f_back None N/A N/A deepest_frame N/A deepest_frame f_back N/A globals_for_main_module N/A deepest_frame f_globals N/A main_module_name N/A N/A _GetModuleObjectAndName globals_for_main_module N/A 1 N/A N/A main_module_name None N/A N/A main_module_name N/A N/A sys argv N/A 0 N/A main_module_name N/A FlagValues N/A N/A N/A Registry of 'Flag' objects.

  A 'FlagValues' can then scan command line arguments, passing flag
  arguments through to the 'Flag' objects that it owns.  It also
  provides easy access to the flag values.  Typically only one
  'FlagValues' object is needed by an application: gflags.FLAGS

  This class is heavily overloaded:

  'Flag' objects are registered via __setitem__:
       FLAGS['longname'] = x   # register a new flag

  The .value attribute of the registered 'Flag' objects can be accessed
  as attributes of this 'FlagValues' object, through __getattr__.  Both
  the long and short name of the original 'Flag' objects can be used to
  access its value:
       FLAGS.longname          # parsed flag value
       FLAGS.x                 # parsed flag value (short name)

  Command line arguments are scanned and passed to the registered 'Flag'
  objects through the __call__ method.  Unparsed arguments, including
  argv[0] (e.g. the program name) are returned.
       argv = FLAGS(sys.argv)  # scan command line arguments

  The original registered Flag objects can be retrieved through the use
  of the dictionary-like operator, __getitem__:
       x = FLAGS['longname']   # access the registered Flag object

  The str() operator of a 'FlagValues' object provides help for all of
  the registered 'Flag' objects.
   __init__ N/A N/A self N/A N/A N/A N/A N/A self __dict__ N/A __flags N/A N/A N/A N/A self __dict__ N/A __flags_by_module N/A N/A N/A N/A self __dict__ N/A __flags_by_module_id N/A N/A N/A N/A self __dict__ N/A __key_flags_by_module N/A N/A N/A N/A self UseGnuGetOpt False N/A UseGnuGetOpt N/A N/A self use_gnu_getopt N/A True N/A N/A Use GNU-style scanning. Allows mixing of flag and non-flag arguments.

    See http://docs.python.org/library/getopt.html#getopt.gnu_getopt

    Args:
      use_gnu_getopt: wether or not to use GNU style scanning.
     N/A N/A N/A self __dict__ N/A __use_gnu_getopt use_gnu_getopt N/A IsGnuGetOpt N/A N/A self N/A N/A N/A N/A N/A self __dict__ N/A __use_gnu_getopt N/A FlagDict N/A N/A self N/A N/A N/A N/A N/A self __dict__ N/A __flags N/A FlagsByModuleDict N/A N/A self N/A N/A N/A Returns the dictionary of module_name -> list of defined flags.

    Returns:
      A dictionary.  Its keys are module names (strings).  Its values
      are lists of Flag objects.
     N/A N/A N/A self __dict__ N/A __flags_by_module N/A FlagsByModuleIdDict N/A N/A self N/A N/A N/A Returns the dictionary of module_id -> list of defined flags.

    Returns:
      A dictionary.  Its keys are module IDs (ints).  Its values
      are lists of Flag objects.
     N/A N/A N/A self __dict__ N/A __flags_by_module_id N/A KeyFlagsByModuleDict N/A N/A self N/A N/A N/A Returns the dictionary of module_name -> list of key flags.

    Returns:
      A dictionary.  Its keys are module names (strings).  Its values
      are lists of Flag objects.
     N/A N/A N/A self __dict__ N/A __key_flags_by_module N/A _RegisterFlagByModule N/A N/A self module_name flag N/A N/A N/A Records the module that defines a specific flag.

    We keep track of which flag is defined by which module so that we
    can later sort the flags by module.

    Args:
      module_name: A string, the name of a Python module.
      flag: A Flag object, a flag that is key to the module.
     N/A flags_by_module N/A N/A self FlagsByModuleDict N/A N/A N/A N/A N/A flags_by_module setdefault module_name N/A append flag N/A _RegisterFlagByModuleId N/A N/A self module_id flag N/A N/A N/A Records the module that defines a specific flag.

    Args:
      module_id: An int, the ID of the Python module.
      flag: A Flag object, a flag that is key to the module.
     N/A flags_by_module_id N/A N/A self FlagsByModuleIdDict N/A N/A N/A N/A N/A flags_by_module_id setdefault module_id N/A append flag N/A _RegisterKeyFlagForModule N/A N/A self module_name flag N/A N/A N/A Specifies that a flag is a key flag for a module.

    Args:
      module_name: A string, the name of a Python module.
      flag: A Flag object, a flag that is key to the module.
     N/A key_flags_by_module N/A N/A self KeyFlagsByModuleDict N/A key_flags N/A N/A key_flags_by_module setdefault module_name N/A N/A N/A flag key_flags N/A N/A N/A N/A key_flags append flag N/A _GetFlagsDefinedByModule N/A N/A self module N/A N/A N/A Returns the list of flags defined by a module.

    Args:
      module: A module object or a module name (a string).

    Returns:
      A new list of Flag objects.  Caller may update this list as he
      wishes: none of those changes will affect the internals of this
      FlagValue object.
     N/A N/A N/A isinstance module str N/A N/A module N/A module __name__ N/A N/A list N/A N/A N/A N/A self FlagsByModuleDict get module N/A N/A _GetKeyFlagsForModule N/A N/A self module N/A N/A N/A Returns the list of key flags for a module.

    Args:
      module: A module object or a module name (a string)

    Returns:
      A new list of Flag objects.  Caller may update this list as he
      wishes: none of those changes will affect the internals of this
      FlagValue object.
     N/A N/A N/A isinstance module str N/A N/A module N/A module __name__ N/A key_flags N/A N/A self _GetFlagsDefinedByModule module N/A flag N/A N/A N/A N/A self KeyFlagsByModuleDict get module N/A N/A N/A N/A flag key_flags N/A N/A N/A N/A key_flags append flag N/A key_flags N/A FindModuleDefiningFlag N/A N/A self flagname default N/A None N/A N/A Return the name of the module defining this flag, or default.

    Args:
      flagname: Name of the flag to lookup.
      default: Value to return if flagname is not defined. Defaults
          to None.

    Returns:
      The name of the module which registered the flag with this name.
      If no such module exists (i.e. no flag with this name exists),
      we return default.
     N/A N/A module flags N/A N/A N/A N/A self FlagsByModuleDict iteritems N/A N/A flag flags N/A N/A N/A N/A N/A flag name flagname N/A N/A flag short_name flagname N/A N/A module N/A default N/A FindModuleIdDefiningFlag N/A N/A self flagname default N/A None N/A N/A Return the ID of the module defining this flag, or default.

    Args:
      flagname: Name of the flag to lookup.
      default: Value to return if flagname is not defined. Defaults
          to None.

    Returns:
      The ID of the module which registered the flag with this name.
      If no such module exists (i.e. no flag with this name exists),
      we return default.
     N/A N/A module_id flags N/A N/A N/A N/A self FlagsByModuleIdDict iteritems N/A N/A flag flags N/A N/A N/A N/A N/A flag name flagname N/A N/A flag short_name flagname N/A N/A module_id N/A default N/A AppendFlagValues N/A N/A self flag_values N/A N/A N/A Appends flags registered in another FlagValues instance.

    Args:
      flag_values: registry to copy from
     N/A N/A flag_name flag N/A N/A N/A N/A flag_values FlagDict iteritems N/A N/A N/A flag_name N/A flag name N/A N/A N/A N/A N/A self N/A flag_name flag N/A N/A N/A DuplicateFlagError N/A N/A N/A DuplicateFlagError flag_name self other_flag_values flag_values N/A RemoveFlagValues N/A N/A self flag_values N/A N/A N/A Remove flags that were previously appended from another FlagValues.

    Args:
      flag_values: registry containing flags to remove.
     N/A flag_name N/A N/A flag_values FlagDict N/A N/A N/A N/A self __delattr__ flag_name N/A __setitem__ N/A N/A self name flag N/A N/A N/A Registers a new flag variable. N/A fl N/A N/A self FlagDict N/A N/A N/A isinstance flag Flag N/A N/A N/A IllegalFlagValue flag N/A N/A N/A isinstance name N/A type N/A N/A N/A FlagsError Flag name must be a string N/A N/A N/A len name 0 N/A N/A N/A FlagsError Flag name cannot be empty N/A N/A N/A name fl N/A N/A flag allow_override N/A N/A N/A fl N/A name allow_override N/A _RUNNING_PYCHECKER N/A N/A N/A module module_name N/A _GetCallingModuleObjectAndName N/A N/A N/A N/A N/A self FindModuleDefiningFlag name module_name N/A N/A id module N/A N/A self FindModuleIdDefiningFlag name N/A N/A N/A N/A DuplicateFlagError name self N/A short_name N/A flag short_name N/A N/A short_name None N/A N/A N/A N/A short_name fl N/A N/A flag allow_override N/A N/A N/A fl N/A short_name allow_override N/A _RUNNING_PYCHECKER N/A N/A N/A DuplicateFlagError short_name self N/A N/A fl N/A short_name flag N/A N/A fl N/A name flag N/A _exported_flags N/A N/A _exported_flags N/A name flag N/A __getitem__ N/A N/A self name N/A N/A N/A Retrieves the Flag object for the flag --name. N/A N/A N/A N/A self FlagDict N/A name N/A __getattr__ N/A N/A self name N/A N/A N/A Retrieves the 'value' attribute of the flag --name. N/A fl N/A N/A self FlagDict N/A N/A name fl N/A N/A N/A AttributeError name N/A N/A N/A fl N/A name value N/A __setattr__ N/A N/A self name value N/A N/A N/A Sets the 'value' attribute of the flag --name. N/A fl N/A N/A self FlagDict N/A N/A N/A fl N/A name value value N/A N/A N/A self _AssertValidators N/A N/A fl N/A name validators N/A value N/A _AssertAllValidators N/A N/A self N/A N/A N/A all_validators N/A set N/A flag N/A N/A N/A N/A self FlagDict itervalues N/A N/A validator N/A flag validators N/A N/A N/A N/A all_validators add validator N/A N/A N/A self _AssertValidators all_validators N/A _AssertValidators N/A N/A self validators N/A N/A N/A Assert if all validators in the list are satisfied.

    Asserts validators in the order they were created.
    Args:
      validators: Iterable(gflags_validators.Validator), validators to be
        verified
    Raises:
      AttributeError: if validators work with a non-existing flag.
      IllegalFlagValue: if validation fails for at least one validator
     N/A validator N/A sorted validators key N/A N/A N/A validator N/A N/A validator insertion_index N/A N/A N/A N/A N/A N/A validator Verify self N/A N/A N/A N/A gflags_validators Error N/A e N/A N/A message N/A N/A validator PrintFlagsWithValues self N/A N/A IllegalFlagValue N/A %s: %s N/A message N/A str e N/A _FlagIsRegistered N/A N/A self flag_obj N/A N/A N/A Checks whether a Flag object is registered under some name.

    Note: this is non trivial: in addition to its normal name, a flag
    may have a short name too.  In self.FlagDict(), both the normal and
    the short name are mapped to the same flag object.  E.g., calling
    only "del FLAGS.short_name" is not unregistering the corresponding
    Flag object (it is still registered under the longer name).

    Args:
      flag_obj: A Flag object.

    Returns:
      A boolean: True iff flag_obj is registered under some name.
     N/A flag_dict N/A N/A self FlagDict N/A name N/A flag_obj name N/A N/A N/A N/A flag_dict get name None flag_obj N/A N/A True N/A short_name N/A flag_obj short_name N/A N/A N/A short_name None N/A N/A N/A flag_dict get short_name None flag_obj N/A N/A True N/A False N/A __delattr__ N/A N/A self flag_name N/A N/A N/A Deletes a previously-defined flag from a flag object.

    This method makes sure we can delete a flag by using

      del flag_values_object.<flag_name>

    E.g.,

      gflags.DEFINE_integer('foo', 1, 'Integer flag.')
      del gflags.FLAGS.foo

    Args:
      flag_name: A string, the name of the flag to be deleted.

    Raises:
      AttributeError: When there is no registered flag named flag_name.
     N/A fl N/A N/A self FlagDict N/A N/A flag_name fl N/A N/A N/A AttributeError flag_name N/A flag_obj N/A fl N/A flag_name N/A N/A fl N/A flag_name N/A N/A N/A N/A self _FlagIsRegistered flag_obj N/A N/A N/A N/A self __RemoveFlagFromDictByModule N/A N/A self FlagsByModuleDict flag_obj N/A N/A N/A self __RemoveFlagFromDictByModule N/A N/A self FlagsByModuleIdDict flag_obj N/A N/A N/A self __RemoveFlagFromDictByModule N/A N/A self KeyFlagsByModuleDict flag_obj N/A __RemoveFlagFromDictByModule N/A N/A self flags_by_module_dict flag_obj N/A N/A N/A Removes a flag object from a module -> list of flags dictionary.

    Args:
      flags_by_module_dict: A dictionary that maps module names to lists of
        flags.
      flag_obj: A flag object.
     N/A N/A unused_module flags_in_module N/A N/A flags_by_module_dict iteritems N/A N/A N/A flag_obj flags_in_module N/A N/A N/A N/A flags_in_module remove flag_obj N/A SetDefault N/A N/A self name value N/A N/A N/A Changes the default value of the named flag object. N/A fl N/A N/A self FlagDict N/A N/A name fl N/A N/A N/A AttributeError name N/A N/A N/A N/A fl N/A name SetDefault value N/A N/A N/A self _AssertValidators N/A N/A fl N/A name validators N/A __contains__ N/A N/A self name N/A N/A N/A Returns True if name is a value (flag) in the dict. N/A N/A name N/A N/A self FlagDict N/A N/A has_key __contains__ __iter__ N/A N/A self N/A N/A N/A N/A iter N/A N/A self FlagDict N/A __call__ N/A N/A self argv N/A N/A N/A Parses flags from argv; stores parsed flags into this FlagValues object.

    All unparsed arguments are returned.  Flags are parsed using the GNU
    Program Argument Syntax Conventions, using getopt:

    http://www.gnu.org/software/libc/manual/html_mono/libc.html#Getopt

    Args:
       argv: argument list. Can be of any type that may be converted to a list.

    Returns:
       The list of arguments not parsed as options, including argv[0]

    Raises:
       FlagsError: on any parsing error
     N/A argv N/A list argv N/A shortopts N/A longopts N/A N/A fl N/A N/A self FlagDict N/A argv N/A N/A argv N/A 1 N/A N/A self ReadFlagsFromFiles N/A argv N/A 1 force_gnu False N/A original_argv N/A list argv N/A shortest_matches None N/A N/A name flag N/A N/A fl items N/A N/A N/A N/A flag boolean N/A N/A N/A N/A shortest_matches None N/A N/A shortest_matches N/A N/A self ShortestUniquePrefixes fl N/A no_name N/A no name N/A prefix N/A shortest_matches N/A name N/A no_prefix N/A shortest_matches N/A no_name N/A arg_idx N/A range 1 N/A len argv N/A N/A arg N/A argv N/A arg_idx N/A N/A N/A N/A arg find = 0 N/A N/A N/A N/A N/A N/A arg startswith N/A -- prefix N/A N/A N/A -- name startswith arg N/A N/A N/A argv N/A arg_idx N/A --%s=true name N/A N/A N/A N/A N/A arg startswith N/A -- no_prefix N/A N/A N/A -- no_name startswith arg N/A N/A N/A argv N/A arg_idx N/A --%s=false name N/A N/A name flag N/A N/A fl items N/A N/A N/A N/A longopts append N/A name = N/A N/A N/A len name 1 N/A N/A shortopts name N/A N/A N/A flag boolean N/A N/A shortopts : N/A N/A N/A longopts append undefok= N/A undefok_flags N/A N/A unrecognized_opts N/A N/A args N/A argv N/A 1 N/A True N/A N/A N/A N/A N/A N/A self __dict__ N/A __use_gnu_getopt N/A N/A N/A optlist unparsed_args N/A N/A getopt gnu_getopt args shortopts longopts N/A N/A N/A optlist unparsed_args N/A N/A getopt getopt args shortopts longopts N/A N/A N/A N/A N/A getopt GetoptError N/A e N/A N/A N/A N/A N/A e opt N/A N/A e opt fl N/A N/A N/A FlagsError e N/A arg_index N/A range N/A len args N/A N/A N/A N/A N/A args N/A arg_index N/A -- N/A e opt N/A N/A args N/A arg_index N/A - N/A e opt N/A N/A N/A args N/A arg_index startswith N/A N/A -- N/A e opt = N/A N/A N/A N/A unrecognized_opts append N/A N/A e opt N/A args N/A arg_index N/A args N/A N/A args N/A 0 arg_index N/A args N/A N/A arg_index 1 N/A N/A N/A N/A FlagsError e N/A N/A name arg optlist N/A N/A N/A name --undefok N/A N/A flag_names N/A N/A arg split , N/A N/A N/A undefok_flags extend flag_names N/A N/A N/A undefok_flags extend N/A N/A no name N/A name flag_names N/A N/A N/A N/A name startswith -- N/A N/A name N/A name N/A 2 N/A short_option 0 N/A N/A name N/A name N/A 1 N/A short_option 1 N/A N/A name fl N/A N/A flag N/A fl N/A name N/A N/A N/A flag boolean short_option N/A N/A arg 1 N/A N/A N/A flag Parse arg N/A N/A opt value unrecognized_opts N/A N/A N/A opt undefok_flags N/A N/A N/A UnrecognizedFlagError opt value N/A unparsed_args N/A N/A N/A N/A self __dict__ N/A __use_gnu_getopt N/A N/A ret_val N/A N/A argv N/A 1 unparsed_args N/A N/A ret_val N/A N/A argv N/A 1 N/A original_argv N/A N/A N/A len unparsed_args N/A N/A ret_val N/A argv N/A 1 N/A N/A N/A self _AssertAllValidators N/A ret_val N/A Reset N/A N/A self N/A N/A N/A Resets the values to the point before FLAGS(argv) was called. N/A f N/A N/A N/A N/A self FlagDict values N/A N/A N/A N/A f Unparse N/A RegisteredFlags N/A N/A self N/A N/A N/A Returns: a list of the names and short names of all registered flags. N/A N/A list N/A N/A self FlagDict N/A FlagValuesDict N/A N/A self N/A N/A N/A Returns: a dictionary that maps flag names to flag values. N/A flag_values N/A N/A flag_name N/A N/A self RegisteredFlags N/A N/A flag N/A N/A N/A self FlagDict N/A flag_name N/A N/A flag_values N/A flag_name N/A flag value N/A flag_values N/A __str__ N/A N/A self N/A N/A N/A Generates a help string for all known flags. N/A N/A N/A self GetHelp N/A GetHelp N/A N/A self prefix N/A N/A N/A Generates a help string for all known flags. N/A helplist N/A N/A flags_by_module N/A N/A self FlagsByModuleDict N/A flags_by_module N/A N/A modules N/A sorted flags_by_module N/A main_module N/A _GetMainModule N/A N/A main_module modules N/A N/A N/A N/A modules remove main_module N/A modules N/A N/A main_module modules N/A module modules N/A N/A N/A N/A self __RenderOurModuleFlags module helplist N/A N/A N/A self __RenderModuleFlags gflags N/A N/A N/A N/A _SPECIAL_FLAGS FlagDict values helplist N/A N/A N/A N/A self __RenderFlagList N/A N/A N/A N/A N/A self FlagDict values N/A N/A N/A N/A _SPECIAL_FLAGS FlagDict values helplist prefix N/A N/A N/A join helplist N/A __RenderModuleFlags N/A N/A self module flags output_lines prefix N/A N/A N/A Generates a help string for a given module. N/A N/A N/A isinstance module str N/A N/A module N/A module __name__ N/A N/A N/A output_lines append N/A 
%s%s: N/A prefix module N/A N/A N/A self __RenderFlagList flags output_lines N/A prefix N/A __RenderOurModuleFlags N/A N/A self module output_lines prefix N/A N/A N/A Generates a help string for a given module. N/A flags N/A N/A self _GetFlagsDefinedByModule module N/A flags N/A N/A N/A N/A self __RenderModuleFlags module flags output_lines prefix N/A __RenderOurModuleKeyFlags N/A N/A self module output_lines prefix N/A N/A N/A Generates a help string for the key flags of a given module.

    Args:
      module: A module object or a module name (a string).
      output_lines: A list of strings.  The generated help message
        lines will be appended to this list.
      prefix: A string that is prepended to each generated help line.
     N/A key_flags N/A N/A self _GetKeyFlagsForModule module N/A key_flags N/A N/A N/A N/A self __RenderModuleFlags module key_flags output_lines prefix N/A ModuleHelp N/A N/A self module N/A N/A N/A Describe the key flags of a module.

    Args:
      module: A module object or a module name (a string).

    Returns:
      string describing the key flags of a module.
     N/A helplist N/A N/A N/A N/A self __RenderOurModuleKeyFlags module helplist N/A N/A N/A join helplist N/A MainModuleHelp N/A N/A self N/A N/A N/A Describe the key flags of the main module.

    Returns:
      string describing the key flags of a module.
     N/A N/A N/A self ModuleHelp N/A _GetMainModule N/A __RenderFlagList N/A N/A self flaglist output_lines prefix N/A N/A N/A fl N/A N/A self FlagDict N/A special_fl N/A N/A _SPECIAL_FLAGS FlagDict N/A flaglist N/A N/A N/A flag name flag N/A flag flaglist N/A N/A N/A flaglist sort N/A flagset N/A N/A N/A name flag flaglist N/A N/A N/A N/A N/A N/A fl get name None flag N/A N/A N/A special_fl get name None flag N/A N/A N/A N/A flag flagset N/A N/A N/A N/A flagset N/A flag 1 N/A flaghelp N/A N/A flag short_name N/A N/A flaghelp N/A -%s, N/A flag short_name N/A N/A flag boolean N/A N/A flaghelp N/A N/A --[no]%s N/A flag name : N/A N/A flaghelp N/A N/A --%s N/A flag name : N/A flaghelp N/A N/A flag help N/A N/A flaghelp N/A flag help N/A flaghelp N/A TextWrap flaghelp indent N/A prefix firstline_indent prefix N/A N/A flag default_as_str N/A N/A flaghelp N/A flaghelp N/A TextWrap N/A (default: %s) N/A flag default_as_str indent N/A prefix N/A N/A N/A flag parser syntactic_help N/A N/A flaghelp N/A flaghelp N/A TextWrap N/A (%s) N/A N/A flag parser syntactic_help indent N/A prefix N/A N/A N/A output_lines append flaghelp N/A get N/A N/A self name default N/A N/A N/A Returns the value of a flag (if not None) or a default value.

    Args:
      name: A string, the name of a flag.
      default: Default value to use if the flag value is None.
     N/A value N/A N/A self __getattr__ name N/A N/A value None N/A N/A value N/A N/A default N/A ShortestUniquePrefixes N/A N/A self fl N/A N/A N/A Returns: dictionary; maps flag names to their shortest unique prefix. N/A sorted_flags N/A N/A N/A name flag N/A N/A fl items N/A N/A N/A N/A sorted_flags append name N/A N/A flag boolean N/A N/A N/A N/A sorted_flags append N/A no%s name N/A N/A N/A sorted_flags sort N/A shortest_matches N/A N/A prev_idx 0 N/A flag_idx N/A range N/A len sorted_flags N/A N/A curr N/A sorted_flags N/A flag_idx N/A N/A flag_idx N/A N/A len sorted_flags 1 N/A N/A next None N/A N/A next N/A sorted_flags N/A N/A flag_idx 1 N/A next_len N/A len next N/A curr_idx N/A range N/A len curr N/A N/A N/A N/A next None N/A curr_idx next_len N/A N/A curr N/A curr_idx N/A next N/A curr_idx N/A N/A N/A shortest_matches N/A curr N/A curr N/A N/A N/A max prev_idx curr_idx 1 N/A prev_idx curr_idx N/A N/A N/A N/A shortest_matches N/A curr curr N/A prev_idx N/A curr_idx 1 N/A shortest_matches N/A __IsFlagFileDirective N/A N/A self flag_string N/A N/A N/A Checks whether flag_string contain a --flagfile=<foo> directive. N/A N/A isinstance flag_string N/A type N/A N/A N/A N/A flag_string startswith --flagfile= N/A N/A 1 N/A N/A N/A flag_string --flagfile N/A N/A 1 N/A N/A N/A N/A flag_string startswith -flagfile= N/A N/A 1 N/A N/A N/A flag_string -flagfile N/A N/A 1 N/A N/A 0 N/A 0 N/A ExtractFilename N/A N/A self flagfile_str N/A N/A N/A Returns filename from a flagfile_str of form -[-]flagfile=filename.

    The cases of --flagfile foo and -flagfile foo shouldn't be hitting
    this function, as they are dealt with in the level above this
    function.
     N/A N/A N/A flagfile_str startswith --flagfile= N/A N/A N/A N/A N/A os path expanduser N/A N/A N/A flagfile_str N/A N/A len --flagfile= strip N/A N/A N/A N/A flagfile_str startswith -flagfile= N/A N/A N/A N/A N/A os path expanduser N/A N/A N/A flagfile_str N/A N/A len -flagfile= strip N/A N/A N/A FlagsError N/A Hit illegal --flagfile type: %s flagfile_str N/A __GetFlagFileLines N/A N/A self filename parsed_file_list N/A N/A N/A Returns the useful (!=comments, etc) lines from a file with flags.

    Args:
      filename: A string, the name of the flag file.
      parsed_file_list: A list of the names of the files we have
        already read.  MUTATED BY THIS FUNCTION.

    Returns:
      List of strings. See the note below.

    NOTE(springer): This function checks for a nested --flagfile=<foo>
    tag and handles the lower file recursively. It returns a list of
    all the lines that _could_ contain command flags. This is
    EVERYTHING except whitespace lines and comments (lines starting
    with '#' or '//').
     N/A line_list N/A N/A flag_line_list N/A N/A N/A N/A file_obj N/A open filename r N/A N/A N/A IOError N/A e_msg N/A N/A N/A CantOpenFlagFileError N/A ERROR:: Unable to open flagfile: %s e_msg N/A line_list N/A N/A file_obj readlines N/A N/A N/A file_obj close N/A N/A N/A parsed_file_list append filename N/A line line_list N/A N/A N/A N/A line isspace N/A N/A N/A N/A N/A N/A N/A line startswith # N/A N/A line startswith // N/A N/A N/A N/A N/A N/A self __IsFlagFileDirective line N/A N/A sub_filename N/A N/A self ExtractFilename line N/A N/A N/A sub_filename parsed_file_list N/A N/A included_flags N/A N/A self __GetFlagFileLines sub_filename parsed_file_list N/A N/A N/A flag_line_list extend included_flags N/A N/A N/A N/A N/A sys stderr write N/A Warning: Hit circular flagfile dependency: %s
 N/A sub_filename N/A N/A N/A N/A flag_line_list append N/A N/A line strip N/A flag_line_list N/A ReadFlagsFromFiles N/A N/A self argv force_gnu N/A True N/A N/A Processes command line args, but also allow args to be read from file.

    Args:
      argv: A list of strings, usually sys.argv[1:], which may contain one or
        more flagfile directives of the form --flagfile="./filename".
        Note that the name of the program (sys.argv[0]) should be omitted.
      force_gnu: If False, --flagfile parsing obeys normal flag semantics.
        If True, --flagfile parsing instead follows gnu_getopt semantics.
        *** WARNING *** force_gnu=False may become the future default!

    Returns:

      A new list which has the original list combined with what we read
      from any flagfile(s).

    References: Global gflags.FLAG class instance.

    This function should be called before the normal FLAGS(argv) call.
    This function scans the input list for a flag that looks like:
    --flagfile=<somefile>. Then it opens <somefile>, reads all valid key
    and value pairs and inserts them into the input list between the
    first item of the list and any subsequent items in the list.

    Note that your application's flags are still defined the usual way
    using gflags DEFINE_flag() type functions.

    Notes (assuming we're getting a commandline of some sort as our input):
    --> Flags from the command line argv _should_ always take precedence!
    --> A further "--flagfile=<otherfile.cfg>" CAN be nested in a flagfile.
        It will be processed after the parent flag file is done.
    --> For duplicate flags, first one we hit should "win".
    --> In a flagfile, a line beginning with # or // is a comment.
    --> Entirely blank lines _should_ be ignored.
     N/A parsed_file_list N/A N/A rest_of_args argv N/A new_argv N/A N/A rest_of_args N/A N/A current_arg N/A rest_of_args N/A 0 N/A rest_of_args N/A rest_of_args N/A 1 N/A N/A N/A self __IsFlagFileDirective current_arg N/A N/A N/A N/A current_arg --flagfile N/A current_arg -flagfile N/A N/A N/A rest_of_args N/A N/A N/A IllegalFlagValue --flagfile with no argument N/A flag_filename N/A N/A N/A os path expanduser N/A rest_of_args N/A 0 N/A rest_of_args N/A rest_of_args N/A 1 N/A N/A flag_filename N/A N/A self ExtractFilename current_arg N/A N/A N/A new_argv extend N/A N/A self __GetFlagFileLines flag_filename parsed_file_list N/A N/A N/A N/A new_argv append current_arg N/A N/A current_arg -- N/A N/A N/A N/A N/A N/A current_arg startswith - N/A N/A N/A N/A force_gnu N/A N/A N/A self __dict__ N/A __use_gnu_getopt N/A N/A N/A rest_of_args N/A N/A N/A N/A new_argv extend rest_of_args N/A new_argv N/A FlagsIntoString N/A N/A self N/A N/A N/A Returns a string with the flags assignments from this FlagValues object.

    This function ignores flags whose value is None.  Each flag
    assignment is separated by a newline.

    NOTE: MUST mirror the behavior of the C++ CommandlineFlagsIntoString
    from http://code.google.com/p/google-gflags
     N/A s N/A flag N/A N/A N/A N/A self FlagDict values N/A N/A N/A N/A flag value None N/A N/A s N/A N/A N/A flag Serialize N/A s N/A AppendFlagsIntoFile N/A N/A self filename N/A N/A N/A Appends all flags assignments from this FlagInfo object to a file.

    Output will be in the format of a flagfile.

    NOTE: MUST mirror the behavior of the C++ AppendFlagsIntoFile
    from http://code.google.com/p/google-gflags
     N/A out_file N/A open filename a N/A N/A N/A out_file write N/A N/A self FlagsIntoString N/A N/A N/A out_file close N/A WriteHelpInXMLFormat N/A N/A self outfile N/A None N/A N/A Outputs flag documentation in XML format.

    NOTE: We use element names that are consistent with those used by
    the C++ command-line flag library, from
    http://code.google.com/p/google-gflags
    We also use a few new elements (e.g., <key>), but we do not
    interfere / overlap with existing XML elements used by the C++
    library.  Please maintain this consistency.

    Args:
      outfile: File object we write to.  Default None means sys.stdout.
     N/A outfile N/A outfile N/A sys stdout N/A N/A N/A outfile write <?xml version="1.0"?>
 N/A N/A N/A outfile write <AllFlags>
 N/A indent N/A N/A _WriteSimpleXMLElement outfile program N/A N/A N/A os path basename N/A N/A sys argv N/A 0 indent N/A usage_doc N/A N/A N/A sys modules N/A __main__ __doc__ N/A N/A usage_doc N/A N/A usage_doc N/A 
USAGE: %s [flags]
 N/A N/A sys argv N/A 0 N/A N/A usage_doc N/A N/A usage_doc replace %s N/A N/A sys argv N/A 0 N/A N/A _WriteSimpleXMLElement outfile usage usage_doc indent N/A key_flags N/A N/A self _GetKeyFlagsForModule N/A _GetMainModule N/A flags_by_module N/A N/A self FlagsByModuleDict N/A all_module_names N/A list N/A N/A flags_by_module keys N/A N/A N/A all_module_names sort N/A module_name all_module_names N/A N/A flag_list N/A N/A N/A f name f N/A f N/A flags_by_module N/A module_name N/A N/A N/A flag_list sort N/A N/A unused_flag_name flag flag_list N/A N/A is_key N/A flag key_flags N/A N/A N/A flag WriteInfoInXMLFormat outfile module_name is_key is_key indent indent N/A N/A N/A outfile write </AllFlags>
 N/A N/A N/A outfile flush N/A AddValidator N/A N/A self validator N/A N/A N/A Register new flags validator to be checked.

    Args:
      validator: gflags_validators.Validator
    Raises:
      AttributeError: if validators work with a non-existing flag.
     N/A flag_name N/A N/A validator GetFlagsNames N/A N/A flag N/A N/A N/A self FlagDict N/A flag_name N/A N/A N/A N/A flag validators append validator N/A N/A N/A FLAGS N/A FlagValues _StrOrUnicode N/A N/A value N/A N/A N/A Converts value to a python string or, if necessary, unicode-string. N/A N/A N/A N/A str value N/A N/A N/A UnicodeEncodeError N/A N/A N/A unicode value N/A _MakeXMLSafe N/A N/A s N/A N/A N/A Escapes <, >, and & from s, and removes XML 1.0-illegal chars. N/A s N/A N/A cgi escape s N/A s N/A N/A re sub [\x00-\x08\x0b\x0c\x0e-\x1f] s N/A s N/A N/A s encode ascii xmlcharrefreplace N/A s N/A _WriteSimpleXMLElement N/A N/A outfile name value indent N/A N/A N/A Writes a simple XML element.

  Args:
    outfile: File object we write the XML element to.
    name: A string, the name of XML element.
    value: A Python object, whose string representation will be used
      as the value of the XML element.
    indent: A string, prepended to each line of generated output.
   N/A value_str N/A _StrOrUnicode value N/A N/A isinstance value bool N/A N/A value_str N/A N/A value_str lower N/A safe_value_str N/A _MakeXMLSafe value_str N/A N/A N/A outfile write N/A %s<%s>%s</%s>
 N/A indent name safe_value_str name N/A Flag N/A N/A N/A Information about a command-line flag.

  'Flag' objects define the following fields:
    .name  - the name for this flag
    .default - the default value for this flag
    .default_as_str - default value as repr'd string, e.g., "'true'" (or None)
    .value  - the most recent parsed value of this flag; set by Parse()
    .help  - a help string or None if no help is available
    .short_name  - the single letter alias for this flag (or None)
    .boolean  - if 'true', this flag does not accept arguments
    .present  - true if this flag was parsed from command line flags.
    .parser  - an ArgumentParser object
    .serializer - an ArgumentSerializer object
    .allow_override - the flag may be redefined without raising an error

  The only public method of a 'Flag' object is Parse(), but it is
  typically only called by a 'FlagValues' object.  The Parse() method is
  a thin wrapper around the 'ArgumentParser' Parse() method.  The parsed
  value is saved in .value, and the .present attribute is updated.  If
  this flag was already present, a FlagsError is raised.

  Parse() is also called during __init__ to parse the default value and
  initialize the .value attribute.  This enables other python modules to
  safely use flags even if the __main__ module neglects to parse the
  command line arguments.  The .present attribute is cleared after
  __init__ parsing.  If the default value is set to None, then the
  __init__ parsing step is skipped and the .value attribute is
  initialized to None.

  Note: The default value is also presented to the user in the help
  string, so it is important that it be a legal value for this flag.
   __init__ N/A N/A self parser serializer name default help_string short_name boolean allow_override N/A None 0 0 N/A N/A N/A self name name N/A N/A help_string N/A N/A help_string (no help available) N/A N/A self help help_string N/A N/A self short_name short_name N/A N/A self boolean boolean N/A N/A self present 0 N/A N/A self parser parser N/A N/A self serializer serializer N/A N/A self allow_override allow_override N/A N/A self value None N/A N/A self validators N/A N/A N/A N/A self SetDefault default N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A id self N/A __eq__ N/A N/A self other N/A N/A N/A N/A self other N/A __lt__ N/A N/A self other N/A N/A N/A N/A isinstance other Flag N/A N/A N/A N/A id self N/A id other N/A NotImplemented N/A __GetParsedValueAsString N/A N/A self value N/A N/A N/A N/A value None N/A N/A None N/A N/A self serializer N/A N/A N/A repr N/A N/A N/A self serializer Serialize value N/A N/A self boolean N/A N/A value N/A N/A N/A repr true N/A N/A N/A repr false N/A N/A repr N/A _StrOrUnicode value N/A Parse N/A N/A self argument N/A N/A N/A N/A N/A N/A self value N/A N/A N/A self parser Parse argument N/A N/A N/A ValueError N/A e N/A N/A N/A IllegalFlagValue N/A flag --%s=%s: %s N/A N/A self name argument e N/A N/A self present 1 N/A Unparse N/A N/A self N/A N/A N/A N/A N/A self default None N/A N/A N/A self value None N/A N/A N/A N/A self Parse N/A self default N/A N/A self present 0 N/A Serialize N/A N/A self N/A N/A N/A N/A N/A self value None N/A N/A N/A N/A self boolean N/A N/A N/A self value N/A N/A N/A --%s N/A self name N/A N/A N/A --no%s N/A self name N/A N/A N/A N/A self serializer N/A N/A N/A FlagsError N/A Serializer not present for flag %s N/A self name N/A N/A --%s=%s N/A N/A self name N/A N/A N/A self serializer Serialize N/A self value N/A SetDefault N/A N/A self value N/A N/A N/A Changes the default value (and current value too) for this Flag. N/A N/A N/A value None N/A self allow_override N/A N/A N/A DuplicateFlagCannotPropagateNoneToSwig N/A self name N/A N/A self default value N/A N/A N/A self Unparse N/A N/A self default_as_str N/A N/A self __GetParsedValueAsString N/A self value N/A Type N/A N/A self N/A N/A N/A Returns: a string that describes the type of this Flag. N/A N/A N/A N/A self parser Type N/A WriteInfoInXMLFormat N/A N/A self outfile module_name is_key indent N/A False N/A N/A Writes common info about this flag, in XML format.

    This is information that is relevant to all flags (e.g., name,
    meaning, etc.).  If you defined a flag that has some other pieces of
    info, then please override _WriteCustomInfoInXMLFormat.

    Please do NOT override this method.

    Args:
      outfile: File object we write to.
      module_name: A string, the name of the module that defines this flag.
      is_key: A boolean, True iff this flag is key for main module.
      indent: A string that is prepended to each generated line.
     N/A N/A N/A outfile write N/A indent <flag>
 N/A inner_indent N/A indent N/A is_key N/A N/A N/A _WriteSimpleXMLElement outfile key yes inner_indent N/A N/A _WriteSimpleXMLElement outfile file module_name inner_indent N/A N/A _WriteSimpleXMLElement outfile name N/A self name inner_indent N/A N/A self short_name N/A N/A N/A _WriteSimpleXMLElement outfile short_name N/A self short_name inner_indent N/A N/A self help N/A N/A N/A _WriteSimpleXMLElement outfile meaning N/A self help inner_indent N/A N/A N/A self serializer N/A N/A isinstance N/A self default str N/A N/A default_serialized N/A N/A N/A self serializer Serialize N/A self default N/A N/A default_serialized N/A self default N/A N/A _WriteSimpleXMLElement outfile default default_serialized inner_indent N/A N/A _WriteSimpleXMLElement outfile current N/A self value inner_indent N/A N/A _WriteSimpleXMLElement outfile type N/A N/A self Type inner_indent N/A N/A N/A self _WriteCustomInfoInXMLFormat outfile inner_indent N/A N/A N/A outfile write N/A indent </flag>
 N/A _WriteCustomInfoInXMLFormat N/A N/A self outfile indent N/A N/A N/A Writes extra info about this flag, in XML format.

    "Extra" means "not already printed by WriteInfoInXMLFormat above."

    Args:
      outfile: File object we write to.
      indent: A string that is prepended to each generated line.
     N/A N/A N/A N/A self parser WriteCustomInfoInXMLFormat outfile indent N/A N/A _ArgumentParserCache N/A type N/A N/A Metaclass used to cache and share argument parsers among flags. N/A _instances N/A __call__ N/A N/A mcs N/A args kwargs N/A N/A Returns an instance of the argument parser cls.

    This method overrides behavior of the __new__ methods in
    all subclasses of ArgumentParser (inclusive). If an instance
    for mcs with the same set of arguments exists, this instance is
    returned, otherwise a new instance is created.

    If any keyword arguments are defined, or the values in args
    are not hashable, this method always returns a new instance of
    cls.

    Args:
      args: Positional initializer arguments.
      kwargs: Initializer keyword arguments.

    Returns:
      An instance of cls, shared or new.
     N/A kwargs N/A N/A N/A N/A type __call__ mcs args kwargs N/A N/A instances N/A mcs _instances N/A key N/A N/A mcs N/A tuple args N/A N/A N/A N/A instances N/A key N/A N/A N/A KeyError N/A N/A N/A N/A instances setdefault key N/A N/A type __call__ mcs args N/A N/A TypeError N/A N/A N/A N/A type __call__ mcs args N/A N/A ArgumentParser N/A object N/A N/A Base class used to parse and convert arguments.

  The Parse() method checks to make sure that the string argument is a
  legal value and convert it to a native type.  If the value cannot be
  converted, it should throw a 'ValueError' exception with a human
  readable explanation of why the value is illegal.

  Subclasses should also define a syntactic_help string which may be
  presented to the user to describe the form of the legal values.

  Argument parser classes must be stateless, since instances are cached
  and shared between flags. Initializer arguments are allowed, but all
  member variables must be derived from initializer arguments only.
   N/A __metaclass__ _ArgumentParserCache N/A syntactic_help Parse N/A N/A self argument N/A N/A N/A Default implementation: always returns its argument unmodified. N/A argument N/A Type N/A N/A self N/A N/A N/A string N/A WriteCustomInfoInXMLFormat N/A N/A self outfile indent N/A N/A N/A N/A N/A ArgumentSerializer N/A N/A N/A Base class for generating string representations of a flag value. Serialize N/A N/A self value N/A N/A N/A N/A _StrOrUnicode value N/A N/A ListSerializer N/A ArgumentSerializer N/A __init__ N/A N/A self list_sep N/A N/A N/A N/A self list_sep list_sep N/A Serialize N/A N/A self value N/A N/A N/A N/A N/A N/A self list_sep join N/A N/A _StrOrUnicode x N/A x value N/A N/A RegisterValidator N/A N/A flag_name checker message flag_values N/A Flag validation failed FLAGS N/A N/A Adds a constraint, which will be enforced during program execution.

  The constraint is validated when flags are initially parsed, and after each
  change of the corresponding flag's value.
  Args:
    flag_name: string, name of the flag to be checked.
    checker: method to validate the flag.
      input  - value of the corresponding flag (string, boolean, etc.
        This value will be passed to checker by the library). See file's
        docstring for examples.
      output - Boolean.
        Must return True if validator constraint is satisfied.
        If constraint is not satisfied, it should either return False or
          raise gflags_validators.Error(desired_error_message).
    message: error text to be shown to the user if checker returns False.
      If checker raises gflags_validators.Error, message from the raised
        Error will be shown.
    flag_values: FlagValues
  Raises:
    AttributeError: if flag_name is not registered as a valid flag name.
   N/A N/A N/A flag_values AddValidator N/A N/A gflags_validators SimpleValidator flag_name checker message N/A MarkFlagAsRequired N/A N/A flag_name flag_values N/A FLAGS N/A N/A Ensure that flag is not None during program execution.

  Registers a flag validator, which will follow usual validator
  rules.
  Args:
    flag_name: string, name of the flag
    flag_values: FlagValues
  Raises:
    AttributeError: if flag_name is not registered as a valid flag name.
   N/A N/A RegisterValidator flag_name N/A N/A N/A value N/A N/A value None message N/A Flag --%s must be specified. flag_name flag_values flag_values N/A _RegisterBoundsValidatorIfNeeded N/A N/A parser name flag_values N/A N/A N/A Enforce lower and upper bounds for numeric flags.

  Args:
    parser: NumericParser (either FloatParser or IntegerParser). Provides lower
      and upper bounds, and help text to display.
    name: string, name of the flag
    flag_values: FlagValues
   N/A N/A N/A N/A parser lower_bound None N/A N/A parser upper_bound None N/A Checker N/A N/A value N/A N/A N/A N/A N/A value None N/A N/A parser IsOutsideBounds value N/A N/A message N/A %s is not %s N/A value N/A parser syntactic_help N/A N/A N/A gflags_validators Error message N/A True N/A N/A N/A RegisterValidator name Checker flag_values flag_values N/A DEFINE N/A N/A parser name default help flag_values serializer N/A FLAGS None args N/A N/A Registers a generic Flag object.

  NOTE: in the docstrings of all DEFINE* functions, "registers" is short
  for "creates a new flag and registers it".

  Auxiliary function: clients should use the specialized DEFINE_<type>
  function instead.

  Args:
    parser: ArgumentParser that is used to parse the flag arguments.
    name: A string, the flag name.
    default: The default value of the flag.
    help: A help string.
    flag_values: FlagValues object the flag will be registered with.
    serializer: ArgumentSerializer that serializes the flag value.
    args: Dictionary with extra keyword args that are passes to the
      Flag __init__.
   N/A N/A DEFINE_flag N/A Flag parser serializer name default help args flag_values N/A DEFINE_flag N/A N/A flag flag_values N/A FLAGS N/A N/A Registers a 'Flag' object with a 'FlagValues' object.

  By default, the global FLAGS 'FlagValue' object is used.

  Typical users will use one of the more specialized DEFINE_xxx
  functions, such as DEFINE_string or DEFINE_integer.  But developers
  who need to create Flag objects themselves should use this function
  to register their flags.
   N/A fv flag_values N/A N/A fv N/A N/A flag name flag N/A N/A isinstance flag_values FlagValues N/A N/A N/A module module_name N/A _GetCallingModuleObjectAndName N/A N/A N/A flag_values _RegisterFlagByModule module_name flag N/A N/A N/A flag_values _RegisterFlagByModuleId N/A id module flag N/A _InternalDeclareKeyFlags N/A N/A flag_names flag_values key_flag_values N/A FLAGS None N/A N/A Declares a flag as key for the calling module.

  Internal function.  User code should call DECLARE_key_flag or
  ADOPT_module_key_flags instead.

  Args:
    flag_names: A list of strings that are names of already-registered
      Flag objects.
    flag_values: A FlagValues object that the flags listed in
      flag_names have registered with (the value of the flag_values
      argument from the DEFINE_* calls that defined those flags).
      This should almost never need to be overridden.
    key_flag_values: A FlagValues object that (among possibly many
      other things) keeps track of the key flags for each module.
      Default None means "same as flag_values".  This should almost
      never need to be overridden.

  Raises:
    UnrecognizedFlagError: when we refer to a flag that was not
      defined yet.
   N/A key_flag_values N/A key_flag_values flag_values N/A module N/A _GetCallingModule N/A flag_name flag_names N/A N/A N/A flag_name flag_values N/A N/A N/A UnrecognizedFlagError flag_name N/A flag N/A N/A N/A flag_values FlagDict N/A flag_name N/A N/A N/A key_flag_values _RegisterKeyFlagForModule module flag N/A DECLARE_key_flag N/A N/A flag_name flag_values N/A FLAGS N/A N/A Declares one flag as key to the current module.

  Key flags are flags that are deemed really important for a module.
  They are important when listing help messages; e.g., if the
  --helpshort command-line flag is used, then only the key flags of the
  main module are listed (instead of all flags, as in the case of
  --help).

  Sample usage:

    gflags.DECLARED_key_flag('flag_1')

  Args:
    flag_name: A string, the name of an already declared flag.
      (Redeclaring flags as key, including flags implicitly key
      because they were declared in this module, is a no-op.)
    flag_values: A FlagValues object.  This should almost never
      need to be overridden.
   N/A N/A flag_name _SPECIAL_FLAGS N/A N/A N/A _InternalDeclareKeyFlags N/A flag_name flag_values _SPECIAL_FLAGS key_flag_values flag_values N/A N/A N/A _InternalDeclareKeyFlags N/A flag_name flag_values flag_values N/A ADOPT_module_key_flags N/A N/A module flag_values N/A FLAGS N/A N/A Declares that all flags key to a module are key to the current module.

  Args:
    module: A module object.
    flag_values: A FlagValues object.  This should almost never need
      to be overridden.

  Raises:
    FlagsError: When given an argument that is a module name (a
    string), instead of a module object.
   N/A N/A isinstance module str N/A N/A N/A FlagsError N/A Received module name %s; expected a module object. module N/A N/A _InternalDeclareKeyFlags N/A N/A f name N/A f N/A N/A flag_values _GetKeyFlagsForModule N/A module __name__ flag_values flag_values N/A N/A module N/A N/A _GetThisModuleObjectAndName N/A 0 N/A N/A N/A _InternalDeclareKeyFlags N/A N/A f name N/A f N/A N/A N/A N/A _SPECIAL_FLAGS FlagDict values flag_values _SPECIAL_FLAGS key_flag_values flag_values N/A DEFINE_string N/A N/A name default help flag_values N/A FLAGS args N/A N/A Registers a flag whose value can be any string. N/A parser N/A ArgumentParser N/A serializer N/A ArgumentSerializer N/A N/A DEFINE parser name default help flag_values serializer args N/A BooleanParser N/A ArgumentParser N/A N/A Parser of boolean values. Convert N/A N/A self argument N/A N/A N/A Converts the argument to a boolean; raise ValueError on errors. N/A N/A N/A type argument str N/A N/A N/A N/A N/A argument lower N/A true t 1 N/A N/A True N/A N/A N/A N/A N/A argument lower N/A false f 0 N/A N/A False N/A bool_argument N/A bool argument N/A N/A argument bool_argument N/A N/A bool_argument N/A N/A ValueError Non-boolean argument to boolean flag argument N/A Parse N/A N/A self argument N/A N/A N/A val N/A N/A self Convert argument N/A val N/A Type N/A N/A self N/A N/A N/A bool N/A N/A BooleanFlag N/A Flag N/A N/A Basic boolean flag.

  Boolean flags do not take any arguments, and their value is either
  True (1) or False (0).  The false value is specified on the command
  line by prepending the word 'no' to either the long or the short flag
  name.

  For example, if a Boolean flag was created whose long name was
  'update' and whose short name was 'x', then this flag could be
  explicitly unset through either --noupdate or --nox.
   __init__ N/A N/A self name default help short_name N/A None args N/A N/A p N/A BooleanParser N/A N/A N/A Flag __init__ self p None name default help short_name 1 args N/A N/A N/A self help N/A N/A N/A self help a boolean value N/A N/A DEFINE_boolean N/A N/A name default help flag_values N/A FLAGS args N/A N/A Registers a boolean flag.

  Such a boolean flag does not take an argument.  If a user wants to
  specify a false value explicitly, the long option beginning with 'no'
  must be used: i.e. --noflag

  This flag will have a value of None, True or False.  None is possible
  if default=None and the user does not specify the flag on the command
  line.
   N/A N/A DEFINE_flag N/A BooleanFlag name default help args flag_values N/A N/A DEFINE_bool DEFINE_boolean HelpFlag N/A BooleanFlag N/A N/A 
  HelpFlag is a special boolean flag that prints usage information and
  raises a SystemExit exception if it is ever found in the command
  line arguments.  Note this is called with allow_override=1, so other
  apps can define their own --help flag, replacing this one, if they want.
   __init__ N/A N/A self N/A N/A N/A N/A N/A BooleanFlag __init__ self help 0 show this help short_name ? allow_override 1 N/A Parse N/A N/A self arg N/A N/A N/A arg N/A N/A doc N/A N/A N/A sys modules N/A __main__ __doc__ N/A flags N/A str FLAGS N/A N/A doc N/A 
USAGE: %s [flags]
 N/A N/A sys argv N/A 0 N/A flags N/A N/A flags: N/A flags N/A N/A N/A sys exit 1 N/A N/A HelpXMLFlag N/A BooleanFlag N/A N/A Similar to HelpFlag, but generates output in XML format. __init__ N/A N/A self N/A N/A N/A N/A N/A BooleanFlag __init__ self helpxml False like --help, but generates XML output allow_override 1 N/A Parse N/A N/A self arg N/A N/A N/A arg N/A N/A N/A N/A FLAGS WriteHelpInXMLFormat N/A sys stdout N/A N/A N/A sys exit 1 N/A N/A HelpshortFlag N/A BooleanFlag N/A N/A 
  HelpshortFlag is a special boolean flag that prints usage
  information for the "main" module, and rasies a SystemExit exception
  if it is ever found in the command line arguments.  Note this is
  called with allow_override=1, so other apps can define their own
  --helpshort flag, replacing this one, if they want.
   __init__ N/A N/A self N/A N/A N/A N/A N/A BooleanFlag __init__ self helpshort 0 show usage only for this module allow_override 1 N/A Parse N/A N/A self arg N/A N/A N/A arg N/A N/A doc N/A N/A N/A sys modules N/A __main__ __doc__ N/A flags N/A N/A FLAGS MainModuleHelp N/A N/A doc N/A 
USAGE: %s [flags]
 N/A N/A sys argv N/A 0 N/A flags N/A N/A flags: N/A flags N/A N/A N/A sys exit 1 N/A N/A NumericParser N/A ArgumentParser N/A N/A Parser of numeric values.

  Parsed value may be bounded to a given upper and lower bound.
   IsOutsideBounds N/A N/A self val N/A N/A N/A N/A N/A N/A N/A self lower_bound None N/A val N/A self lower_bound N/A N/A N/A self upper_bound None N/A val N/A self upper_bound N/A Parse N/A N/A self argument N/A N/A N/A val N/A N/A self Convert argument N/A N/A N/A self IsOutsideBounds val N/A N/A N/A ValueError N/A %s is not %s N/A val N/A self syntactic_help N/A val N/A WriteCustomInfoInXMLFormat N/A N/A self outfile indent N/A N/A N/A N/A N/A self lower_bound None N/A N/A N/A _WriteSimpleXMLElement outfile lower_bound N/A self lower_bound indent N/A N/A N/A self upper_bound None N/A N/A N/A _WriteSimpleXMLElement outfile upper_bound N/A self upper_bound indent N/A Convert N/A N/A self argument N/A N/A N/A Default implementation: always returns its argument unmodified. N/A argument N/A N/A FloatParser N/A NumericParser N/A N/A Parser of floating point values.

  Parsed value may be bounded to a given upper and lower bound.
   N/A number_article a N/A number_name number N/A syntactic_help N/A N/A join N/A number_article number_name __init__ N/A N/A self lower_bound upper_bound N/A None None N/A N/A N/A N/A N/A super FloatParser self __init__ N/A N/A self lower_bound lower_bound N/A N/A self upper_bound upper_bound N/A sh N/A self syntactic_help N/A N/A N/A lower_bound None N/A upper_bound None N/A N/A sh N/A %s in the range [%s, %s] N/A sh lower_bound upper_bound N/A N/A N/A lower_bound 0 N/A N/A sh N/A a non-negative %s N/A self number_name N/A N/A N/A upper_bound 0 N/A N/A sh N/A a non-positive %s N/A self number_name N/A N/A N/A upper_bound None N/A N/A sh N/A %s <= %s N/A N/A self number_name upper_bound N/A N/A N/A lower_bound None N/A N/A sh N/A %s >= %s N/A N/A self number_name lower_bound N/A N/A self syntactic_help sh N/A Convert N/A N/A self argument N/A N/A N/A Converts argument to a float; raises ValueError on errors. N/A N/A float argument N/A Type N/A N/A self N/A N/A N/A float N/A N/A DEFINE_float N/A N/A name default help lower_bound upper_bound flag_values N/A None None FLAGS args N/A N/A Registers a flag whose value must be a float.

  If lower_bound or upper_bound are set, then this flag must be
  within the given range.
   N/A parser N/A FloatParser lower_bound upper_bound N/A serializer N/A ArgumentSerializer N/A N/A DEFINE parser name default help flag_values serializer args N/A N/A _RegisterBoundsValidatorIfNeeded parser name flag_values flag_values N/A IntegerParser N/A NumericParser N/A N/A Parser of an integer value.

  Parsed value may be bounded to a given upper and lower bound.
   N/A number_article an N/A number_name integer N/A syntactic_help N/A N/A join N/A number_article number_name __init__ N/A N/A self lower_bound upper_bound N/A None None N/A N/A N/A N/A N/A super IntegerParser self __init__ N/A N/A self lower_bound lower_bound N/A N/A self upper_bound upper_bound N/A sh N/A self syntactic_help N/A N/A N/A lower_bound None N/A upper_bound None N/A N/A sh N/A %s in the range [%s, %s] N/A sh lower_bound upper_bound N/A N/A N/A lower_bound 1 N/A N/A sh N/A a positive %s N/A self number_name N/A N/A N/A upper_bound -1 N/A N/A sh N/A a negative %s N/A self number_name N/A N/A N/A lower_bound 0 N/A N/A sh N/A a non-negative %s N/A self number_name N/A N/A N/A upper_bound 0 N/A N/A sh N/A a non-positive %s N/A self number_name N/A N/A N/A upper_bound None N/A N/A sh N/A %s <= %s N/A N/A self number_name upper_bound N/A N/A N/A lower_bound None N/A N/A sh N/A %s >= %s N/A N/A self number_name lower_bound N/A N/A self syntactic_help sh N/A Convert N/A N/A self argument N/A N/A N/A __pychecker__ no-returnvalues N/A N/A N/A type argument str N/A N/A base 10 N/A N/A N/A N/A len argument 2 N/A N/A argument N/A 0 0 N/A N/A argument N/A 1 x N/A N/A base 16 N/A N/A int argument base N/A N/A N/A int argument N/A Type N/A N/A self N/A N/A N/A int N/A N/A DEFINE_integer N/A N/A name default help lower_bound upper_bound flag_values N/A None None FLAGS args N/A N/A Registers a flag whose value must be an integer.

  If lower_bound, or upper_bound are set, then this flag must be
  within the given range.
   N/A parser N/A IntegerParser lower_bound upper_bound N/A serializer N/A ArgumentSerializer N/A N/A DEFINE parser name default help flag_values serializer args N/A N/A _RegisterBoundsValidatorIfNeeded parser name flag_values flag_values N/A EnumParser N/A ArgumentParser N/A N/A Parser of a string enum value (a string value from a given set).

  If enum_values (see below) is not specified, any string is allowed.
   __init__ N/A N/A self enum_values N/A None N/A N/A N/A N/A N/A super EnumParser self __init__ N/A N/A self enum_values enum_values N/A Parse N/A N/A self argument N/A N/A N/A N/A N/A self enum_values N/A argument N/A self enum_values N/A N/A N/A ValueError N/A value should be one of <%s> N/A N/A | join N/A self enum_values N/A argument N/A Type N/A N/A self N/A N/A N/A string enum N/A N/A EnumFlag N/A Flag N/A N/A Basic enum flag; its value can be any string from list of enum_values. __init__ N/A N/A self name default help enum_values short_name N/A None None args N/A N/A enum_values N/A enum_values N/A N/A p N/A EnumParser enum_values N/A g N/A ArgumentSerializer N/A N/A N/A Flag __init__ self p g name default help short_name args N/A N/A N/A self help N/A N/A N/A self help an enum string N/A N/A self help N/A <%s>: %s N/A N/A N/A | join enum_values N/A self help N/A _WriteCustomInfoInXMLFormat N/A N/A self outfile indent N/A N/A N/A enum_value N/A N/A self parser enum_values N/A N/A N/A _WriteSimpleXMLElement outfile enum_value enum_value indent N/A N/A DEFINE_enum N/A N/A name default enum_values help flag_values N/A FLAGS args N/A N/A Registers a flag whose value can be any string from enum_values. N/A N/A DEFINE_flag N/A EnumFlag name default help enum_values args flag_values N/A BaseListParser N/A ArgumentParser N/A N/A Base class for a parser of lists of strings.

  To extend, inherit from this class; from the subclass __init__, call

    BaseListParser.__init__(self, token, name)

  where token is a character used to tokenize, and name is a description
  of the separator.
   __init__ N/A N/A self token name N/A None None N/A N/A name N/A N/A N/A N/A super BaseListParser self __init__ N/A N/A self _token token N/A N/A self _name name N/A N/A self syntactic_help N/A a %s separated list N/A self _name N/A Parse N/A N/A self argument N/A N/A N/A N/A isinstance argument list N/A N/A argument N/A N/A N/A argument N/A N/A N/A N/A N/A N/A N/A N/A s strip N/A s N/A N/A argument split N/A self _token N/A Type N/A N/A self N/A N/A N/A N/A %s separated list of strings N/A self _name N/A N/A ListParser N/A BaseListParser N/A N/A Parser for a comma-separated list of strings. __init__ N/A N/A self N/A N/A N/A N/A N/A BaseListParser __init__ self , comma N/A WriteCustomInfoInXMLFormat N/A N/A self outfile indent N/A N/A N/A N/A N/A BaseListParser WriteCustomInfoInXMLFormat self outfile indent N/A N/A _WriteSimpleXMLElement outfile list_separator N/A repr , indent N/A N/A WhitespaceSeparatedListParser N/A BaseListParser N/A N/A Parser for a whitespace-separated list of strings. __init__ N/A N/A self N/A N/A N/A N/A N/A BaseListParser __init__ self None whitespace N/A WriteCustomInfoInXMLFormat N/A N/A self outfile indent N/A N/A N/A N/A N/A BaseListParser WriteCustomInfoInXMLFormat self outfile indent N/A separators N/A list N/A string whitespace N/A N/A N/A separators sort N/A ws_char N/A string whitespace N/A N/A N/A _WriteSimpleXMLElement outfile list_separator N/A repr ws_char indent N/A N/A DEFINE_list N/A N/A name default help flag_values N/A FLAGS args N/A N/A Registers a flag whose value is a comma-separated list of strings. N/A parser N/A ListParser N/A serializer N/A ListSerializer , N/A N/A DEFINE parser name default help flag_values serializer args N/A DEFINE_spaceseplist N/A N/A name default help flag_values N/A FLAGS args N/A N/A Registers a flag whose value is a whitespace-separated list of strings.

  Any whitespace can be used as a separator.
   N/A parser N/A WhitespaceSeparatedListParser N/A serializer N/A ListSerializer N/A N/A DEFINE parser name default help flag_values serializer args N/A MultiFlag N/A Flag N/A N/A A flag that can appear multiple time on the command-line.

  The value of such a flag is a list that contains the individual values
  from all the appearances of that flag on the command-line.

  See the __doc__ for Flag for most behavior of this class.  Only
  differences in behavior are described here:

    * The default value may be either a single value or a list of values.
      A single value is interpreted as the [value] singleton list.

    * The value of the flag is always a list, even if the option was
      only supplied once, and even if the default value is a single
      value
   __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A Flag __init__ self args kwargs N/A N/A self help ;
    repeat this option to specify a list of values N/A Parse N/A N/A self arguments N/A N/A N/A Parses one or more arguments with the installed parser.

    Args:
      arguments: a single argument or a list of arguments (typically a
        list of default values); a single argument is converted
        internally into a list containing one item.
     N/A N/A N/A isinstance arguments list N/A N/A arguments N/A arguments N/A N/A self present N/A N/A values N/A self value N/A N/A values N/A N/A item arguments N/A N/A N/A N/A Flag Parse self item N/A N/A N/A values append N/A self value N/A N/A self value values N/A Serialize N/A N/A self N/A N/A N/A N/A N/A self serializer N/A N/A N/A FlagsError N/A Serializer not present for flag %s N/A self name N/A N/A N/A self value None N/A N/A N/A s N/A multi_value N/A self value N/A N/A self value multi_value N/A N/A s N/A N/A s N/A s N/A N/A Flag Serialize self N/A N/A self value multi_value N/A s N/A Type N/A N/A self N/A N/A N/A N/A multi  N/A N/A N/A self parser Type N/A N/A DEFINE_multi N/A N/A parser serializer name default help flag_values N/A FLAGS args N/A N/A Registers a generic MultiFlag that parses its args with a given parser.

  Auxiliary function.  Normal users should NOT use it directly.

  Developers who need to create their own 'Parser' classes for options
  which can appear multiple times can call this module function to
  register their flags.
   N/A N/A DEFINE_flag N/A MultiFlag parser serializer name default help args flag_values N/A DEFINE_multistring N/A N/A name default help flag_values N/A FLAGS args N/A N/A Registers a flag whose value can be a list of any strings.

  Use the flag on the command line multiple times to place multiple
  string values into the list.  The 'default' may be a single string
  (which will be converted into a single-element list) or a list of
  strings.
   N/A parser N/A ArgumentParser N/A serializer N/A ArgumentSerializer N/A N/A DEFINE_multi parser serializer name default help flag_values args N/A DEFINE_multi_int N/A N/A name default help lower_bound upper_bound flag_values N/A None None FLAGS args N/A N/A Registers a flag whose value can be a list of arbitrary integers.

  Use the flag on the command line multiple times to place multiple
  integer values into the list.  The 'default' may be a single integer
  (which will be converted into a single-element list) or a list of
  integers.
   N/A parser N/A IntegerParser lower_bound upper_bound N/A serializer N/A ArgumentSerializer N/A N/A DEFINE_multi parser serializer name default help flag_values args N/A DEFINE_multi_float N/A N/A name default help lower_bound upper_bound flag_values N/A None None FLAGS args N/A N/A Registers a flag whose value can be a list of arbitrary floats.

  Use the flag on the command line multiple times to place multiple
  float values into the list.  The 'default' may be a single float
  (which will be converted into a single-element list) or a list of
  floats.
   N/A parser N/A FloatParser lower_bound upper_bound N/A serializer N/A ArgumentSerializer N/A N/A DEFINE_multi parser serializer name default help flag_values args N/A N/A N/A DEFINE_flag N/A HelpFlag N/A N/A DEFINE_flag N/A HelpshortFlag N/A N/A DEFINE_flag N/A HelpXMLFlag N/A _SPECIAL_FLAGS N/A FlagValues N/A N/A DEFINE_string flagfile Insert flag definitions from the given file into the command line. _SPECIAL_FLAGS N/A N/A DEFINE_string undefok comma-separated list of flag names that it is okay to specify on the command line even if the program does not define a flag with that name.  IMPORTANT: flags in this list that have arguments MUST use the --flag=value format. _SPECIAL_FLAGS