Module Expr Str ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore AttributeLoad NameLoad attr TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpOr BoolOpAnd UnaryOpNot Call NameLoad NameLoad Str ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Expr Str If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpMult Str NameLoad Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Str body Expr Str Assign NameStore IfExp CompareIn NameLoad TupleLoad Str Str Str NameLoad Str Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num Str If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareLtE NameLoad NameLoad body Return NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore IfExp CompareGtE NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Slice BinOpSub NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Str orelse Assign NameStore BinOpAdd Str NameLoad If UnaryOpNot NameLoad body Return Str If NameLoad body If CompareEq Call NameLoad NameLoad Num body Return BinOpMod Str SubscriptLoad NameLoad Index Num Return BinOpAdd Call AttributeLoad Str attr GeneratorExp BinOpMod Str NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num BinOpMod Str TupleLoad NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num orelse If CompareEq Call NameLoad NameLoad Num body Return Call NameLoad SubscriptLoad NameLoad Index Num Return BinOpAdd Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str If CompareNotEq SubscriptLoad NameLoad Index Num Str body AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str If CompareNotEq SubscriptLoad NameLoad Index Num Str body AugAssignAdd NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If CompareLt NameLoad Num body Assign NameStore Num orelse Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpFloorDiv NameLoad Num AugAssignSub NameStore BinOpMult NameLoad Num Assign NameStore BinOpFloorDiv NameLoad Num AugAssignSub NameStore BinOpMult NameLoad Num Assign NameStore BinOpFloorDiv NameLoad Num AugAssignSub NameStore BinOpMult NameLoad Num If CompareIs NameLoad Num body Expr Str If CompareGt NameLoad Num body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad orelse If CompareIs NameLoad Num body Expr Str If CompareGt NameLoad Num body Return BinOpMod Str TupleLoad NameLoad orelse If CompareGt NameLoad Num body Return BinOpMod Str TupleLoad NameLoad orelse If CompareGt NameLoad Num body Return BinOpMod Str TupleLoad NameLoad orelse Return BinOpMod Str TupleLoad NameLoad orelse If CompareIs NameLoad Num body Expr Str Assign NameStore NameStore Str Assign NameStore Str If CompareGt NameLoad Num body If CompareEq NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad If BoolOpOr NameLoad CompareGt NameLoad Num body If CompareEq NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad If BoolOpOr NameLoad CompareGt NameLoad Num body If CompareEq NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse If CompareIs NameLoad Num body Expr Str Assign NameStore NameStore NameStore NameStore Str If CompareGt NameLoad Num body If CompareEq NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad If BoolOpOr NameLoad CompareGt NameLoad Num body If CompareEq NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad If BoolOpOr NameLoad CompareGt NameLoad Num body If CompareEq NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad If BoolOpOr NameLoad CompareGt NameLoad Num body If CompareEq NameLoad Num body Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareLt NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr orelse If CompareLt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareLt NameLoad BinOpSub AttributeLoad NameLoad attr Num body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Import alias Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore IfExp UnaryOpNot Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad NameLoad Assign NameStore ListComp IfExp UnaryOpNot Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad Return ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore IfExp BoolOpAnd Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return IfExp CompareGt NameLoad Num NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Return IfExp BoolOpAnd Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num Call NameLoad NameLoad NameLoad orelse Return IfExp Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad TryExcept body If CompareLt Call NameLoad NameLoad Num body Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type NameLoad body If NameLoad body Raise Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str If BoolOpAnd NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body For NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Pass Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str If BoolOpAnd NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad body For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Pass Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str NameLoad Assign NameStore TupleLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str If CompareLt Call NameLoad NameLoad Num body Return NameLoad TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num handlers ExceptHandler type NameLoad body Return NameLoad If BoolOpAnd CompareNotEq Call NameLoad NameLoad Num CompareNotIn NameLoad NameLoad body Return NameLoad For NameStore Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str For NameStore Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad body Assign NameStore ListComp BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore ListComp BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse If Call NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad GeneratorExp Num comprehension NameStore NameLoad CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str ImportFrom alias If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore Dict Delete NameDel Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str TryExcept body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str handlers ExceptHandler type NameLoad body Assign NameStore AttributeLoad NameLoad attr Return CompareEq NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Global identifier identifier If UnaryOpNot NameLoad body ImportFrom alias identifier If UnaryOpNot NameLoad body Return TryExcept body Expr Call NameLoad NameLoad Str NameLoad handlers ExceptHandler type NameLoad body Pass Expr ListComp Call NameLoad NameLoad NameLoad comprehension NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict handlers ExceptHandler type NameLoad body Pass decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Dict If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Str If CompareIn Str AttributeLoad NameLoad attr body AugAssignAdd NameStore Str Assign NameStore NameLoad If AttributeLoad NameLoad attr body TryExcept body Import alias Expr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body AugAssignAdd NameStore Str Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpMult Str NameLoad NameLoad BinOpMult Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call NameLoad GeneratorExp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse TryExcept body Assign NameStore Call NameLoad NameLoad keyword ListLoad Str handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq Call NameLoad NameLoad Str body Raise If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Return TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Dict Return Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad If NameLoad body If NameLoad body Return NameLoad orelse Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Return IfExp NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BinOpAdd ListLoad NameLoad Call NameLoad NameLoad For NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If UnaryOpNot Call AttributeLoad Call NameLoad NameLoad attr BinOpMod Str NameLoad body Raise NameLoad Return Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad If NameLoad body Assign NameStore IfExp NameLoad BinOpAdd ListLoad NameLoad ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad ListLoad orelse Assign NameStore ListLoad NameLoad For NameStore NameLoad body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num orelse Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad keyword Str handlers ExceptHandler type NameLoad body If CompareGt Call NameLoad Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num orelse Continue TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad Break handlers ExceptHandler type NameLoad body If CompareGt Call NameLoad Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str NameLoad If NameLoad body AugAssignAdd NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad orelse AugAssignAdd NameStore Str Raise Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad TryExcept body Return BinOpDiv Call NameLoad Call NameLoad GeneratorExp BinOpMult SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad BinOpMult Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp BinOpPow NameLoad Num comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp BinOpPow NameLoad Num comprehension NameStore NameLoad handlers ExceptHandler type NameLoad body Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Return SubscriptLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad ListComp TupleLoad Call NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num keyword NameLoad CompareGtE SubscriptLoad NameLoad Index Num NameLoad Slice NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body Return ListLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Num Assign NameStore Num For NameStore NameLoad body Assign NameStore ListComp BinOpAdd NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpAdd Call NameLoad NameLoad Num AugAssignAdd NameStore Num orelse Assign NameStore Num Break If NameLoad body If NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If NameLoad body Return SubscriptLoad NameLoad Index Call NameLoad NameLoad Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If UnaryOpNot NameLoad body Return ListLoad ListLoad Assign NameStore ListComp Call NameLoad ListComp Call NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad comprehension NameStore NameLoad Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr ListComp BinOpAdd Call AttributeLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Str NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad NameLoad body Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults Num body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareGtE NameLoad Num CompareGt NameLoad NameLoad body Return For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad Call NameLoad NameLoad keyword Num Expr Call NameLoad NameLoad NameLoad BinOpAdd NameLoad Num decorator_list Assign NameStore Dict Expr Call NameLoad NameLoad NameLoad Num Assign NameStore BinOpAdd Call NameLoad NameLoad Call NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Num FunctionDef arguments args NameParam defaults body Expr Str Global identifier If UnaryOpNot NameLoad body ImportFrom alias identifier Return Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Import alias alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad Num BinOpAdd NameLoad Num BinOpSub Call NameLoad NameLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad AttributeLoad NameLoad attr attr Num Slice Num Return BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias If Call NameLoad NameLoad NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad kwarg body Expr Str Assign NameStore Str If UnaryOpNot NameLoad body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpMod Str NameLoad Assign NameStore NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad BinOpMod Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body AugAssignAdd NameStore BinOpMod Str TupleLoad BinOpAdd NameLoad Num NameLoad IfExp Call NameLoad NameLoad Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body While CompareLt AttributeLoad NameLoad attr Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
General helper functions that don't fit neatly under any given category.

They provide some useful string and conversion methods that might
be of use when designing your own game.

 __future__ division print_function builtins object range future.utils viewkeys raise_ N/A os N/A sys N/A imp N/A types N/A math N/A re N/A textwrap N/A random importlib import_module inspect ismodule trace collections defaultdict OrderedDict twisted.internet threads defer reactor django.conf settings django.utils timezone django.utils.translation ugettext _ evennia.utils logger N/A _MULTIMATCH_SEPARATOR N/A settings SEARCH_MULTIMATCH_SEPARATOR N/A N/A N/A cPickle pickle N/A N/A N/A ImportError N/A N/A pickle N/A ENCODINGS N/A settings ENCODINGS N/A _GA N/A object __getattribute__ N/A _SA N/A object __setattr__ N/A _DA N/A object __delattr__ N/A _DEFAULT_WIDTH N/A settings CLIENT_DEFAULT_WIDTH is_iter N/A N/A iterable N/A N/A N/A 
    Checks if an object behaves iterably.

    Args:
        iterable (any): Entity to check for iterability.

    Returns:
        is_iterable (bool): If `iterable` is iterable or not.

    Notes:
        Strings are *not* accepted as iterable (although they are
        actually iterable), since string iterations are usually not
        what we want to do with a string.

     N/A N/A hasattr iterable __iter__ N/A make_iter N/A N/A obj N/A N/A N/A 
    Makes sure that the object is always iterable.

    Args:
        obj (any): Object to make iterable.

    Returns:
        iterable (list or iterable): The same object
            passed-through or made iterable.

     N/A N/A N/A N/A N/A hasattr obj __iter__ N/A obj obj N/A wrap N/A N/A text width indent N/A _DEFAULT_WIDTH 0 N/A N/A 
    Safely wrap text to a certain number of characters.

    Args:
        text (str): The text to wrap.
        width (int, optional): The number of characters to wrap to.
        indent (int): How much to indent new lines (the first line
            will not be indented)

    Returns:
        text (str): Properly wrapped text.

     N/A N/A text N/A N/A N/A text N/A to_unicode text N/A indent N/A indent N/A N/A to_str N/A N/A textwrap fill text width subsequent_indent indent N/A N/A fill wrap pad N/A N/A text width align fillchar N/A _DEFAULT_WIDTH c N/A N/A 
    Pads to a given width.

    Args:
        text (str): Text to pad.
        width (int, optional): The width to pad to, in characters.
        align (str, optional): This is one of 'c', 'l' or 'r' (center,
            left or right).
        fillchar (str, optional): The character to fill with.

    Returns:
        text (str): The padded text.

     N/A align N/A N/A align N/A c l r align c N/A fillchar N/A fillchar N/A fillchar N/A 0 N/A N/A align l N/A N/A N/A N/A text ljust width fillchar N/A N/A N/A align r N/A N/A N/A N/A text rjust width fillchar N/A N/A N/A N/A text center width fillchar N/A crop N/A N/A text width suffix N/A _DEFAULT_WIDTH [...] N/A N/A 
    Crop text to a certain width, throwing away text from too-long
    lines.

    Args:
        text (str): Text to crop.
        width (int, optional): Width of line to crop, in characters.
        suffix (str, optional): This is appended to the end of cropped
            lines to show that the line actually continues. Cropping
            will be done so that the suffix will also fit within the
            given width. If width is too small to fit both crop and
            suffix, the suffix will be dropped.

    Returns:
        text (str): The cropped text.

     N/A utext N/A to_unicode text N/A ltext N/A len utext N/A N/A ltext width N/A N/A text N/A N/A lsuffix N/A len suffix N/A utext N/A N/A lsuffix width N/A utext N/A width N/A %s%s N/A N/A utext N/A N/A width lsuffix suffix N/A N/A to_str utext N/A dedent N/A N/A text N/A N/A N/A 
    Safely clean all whitespace at the left of a paragraph.

    Args:
        text (str): The text to dedent.

    Returns:
        text (str): Dedented string.

    Notes:
        This is useful for preserving triple-quoted string indentation
        while still shifting it all to be next to the left edge of the
        display.

     N/A N/A text N/A N/A N/A N/A N/A textwrap dedent text N/A list_to_string N/A N/A inlist endsep addquote N/A and False N/A N/A 
    This pretty-formats a list as string output, adding an optional
    alternative separator to the second to last entry.  If `addquote`
    is `True`, the outgoing strings will be surrounded by quotes.

    Args:
        inlist (list): The list to print.
        endsep (str, optional): If set, the last item separator will
            be replaced with this value.
        addquote (bool, optional): This will surround all outgoing
            values with double quotes.

    Returns:
        liststr (str): The list represented as a string.

    Examples:

        ```python
         # no endsep:
            [1,2,3] -> '1, 2, 3'
         # with endsep=='and':
            [1,2,3] -> '1, 2 and 3'
         # with addquote and endsep
            [1,2,3] -> '"1", "2" and "3"'
        ```

     N/A N/A endsep N/A N/A endsep , N/A N/A endsep N/A endsep N/A N/A inlist N/A N/A N/A addquote N/A N/A N/A N/A len inlist 1 N/A N/A N/A "%s" N/A inlist N/A 0 N/A N/A N/A N/A ,  join N/A N/A "%s" v N/A v N/A inlist N/A -1 N/A %s %s N/A endsep N/A "%s" N/A inlist N/A -1 N/A N/A N/A N/A len inlist 1 N/A N/A N/A str N/A inlist N/A 0 N/A N/A N/A N/A ,  join N/A N/A str v N/A v N/A inlist N/A -1 N/A %s %s N/A endsep N/A inlist N/A -1 N/A wildcard_to_regexp N/A N/A instring N/A N/A N/A 
    Converts a player-supplied string that may have wildcards in it to
    regular expressions. This is useful for name matching.

    Args:
        instring (string): A string that may potentially contain
            wildcards (`*` or `?`).

    Returns:
        regex (str): A string where wildcards were replaced with
            regular expressions.

     N/A regexp_string N/A N/A N/A instring N/A 0 * N/A N/A regexp_string ^ N/A regexp_string N/A N/A N/A N/A instring replace * (.*) replace ? (.{1}) N/A N/A N/A instring N/A -1 * N/A N/A regexp_string $ N/A regexp_string N/A time_format N/A N/A seconds style N/A 0 N/A N/A 
    Function to return a 'prettified' version of a value in seconds.

    Args:
        seconds (int): Number if seconds to format.
        style (int): One of the following styles:
            0. "1d 08:30"
            1. "1d"
            2. "1 day, 8 hours, 30 minutes"
            3. "1 day, 8 hours, 30 minutes, 10 seconds"
     N/A N/A seconds 0 N/A N/A seconds 0 N/A N/A seconds N/A int seconds N/A days N/A seconds 86400 N/A seconds N/A days 86400 N/A hours N/A seconds 3600 N/A seconds N/A hours 3600 N/A minutes N/A seconds 60 N/A seconds N/A minutes 60 N/A N/A style 0 N/A N/A 
        Standard colon-style output.
         N/A N/A days 0 N/A N/A retval N/A %id %02i:%02i N/A days hours minutes N/A N/A retval N/A %02i:%02i N/A hours minutes N/A retval N/A N/A N/A style 1 N/A N/A 
        Simple, abbreviated form that only shows the highest time amount.
         N/A N/A days 0 N/A N/A N/A %id N/A days N/A N/A N/A hours 0 N/A N/A N/A %ih N/A hours N/A N/A N/A minutes 0 N/A N/A N/A %im N/A minutes N/A N/A N/A %is N/A seconds N/A N/A N/A style 2 N/A N/A 
        Full-detailed, long-winded format. We ignore seconds.
         N/A days_str hours_str N/A minutes_str 0 minutes N/A N/A days 0 N/A N/A N/A days 1 N/A N/A days_str N/A %i day,  days N/A N/A days_str N/A %i days,  days N/A N/A days N/A hours 0 N/A N/A N/A hours 1 N/A N/A hours_str N/A %i hour,  hours N/A N/A hours_str N/A %i hours,  hours N/A N/A hours N/A minutes 0 N/A N/A N/A minutes 1 N/A N/A minutes_str N/A %i minute  minutes N/A N/A minutes_str N/A %i minutes  minutes N/A retval N/A %s%s%s N/A days_str hours_str minutes_str N/A N/A N/A style 3 N/A N/A 
        Full-detailed, long-winded format. Includes seconds.
         N/A days_str hours_str minutes_str seconds_str N/A N/A days 0 N/A N/A N/A days 1 N/A N/A days_str N/A %i day,  days N/A N/A days_str N/A %i days,  days N/A N/A days N/A hours 0 N/A N/A N/A hours 1 N/A N/A hours_str N/A %i hour,  hours N/A N/A hours_str N/A %i hours,  hours N/A N/A hours N/A minutes 0 N/A N/A N/A minutes 1 N/A N/A minutes_str N/A %i minute  minutes N/A N/A minutes_str N/A %i minutes  minutes N/A N/A minutes N/A seconds 0 N/A N/A N/A seconds 1 N/A N/A seconds_str N/A %i second  seconds N/A N/A seconds_str N/A %i seconds  seconds N/A retval N/A %s%s%s%s N/A days_str hours_str minutes_str seconds_str N/A N/A N/A retval strip N/A datetime_format N/A N/A dtobj N/A N/A N/A 
    Pretty-prints the time since a given time.

    Args:
        dtobj (datetime): An datetime object, e.g. from Django's
            `DateTimeField`.

    Returns:
        deltatime (str): A string describing how long ago `dtobj`
            took place.

     N/A N/A year month day N/A N/A dtobj year N/A dtobj month N/A dtobj day N/A N/A hour minute second N/A N/A dtobj hour N/A dtobj minute N/A dtobj second N/A now N/A N/A timezone now N/A N/A year N/A now year N/A N/A timestring N/A str N/A N/A dtobj date N/A N/A N/A N/A N/A dtobj date N/A N/A now date N/A N/A timestring N/A %02i-%02i N/A day month N/A N/A N/A hour N/A N/A now hour 1 N/A N/A timestring N/A %02i:%02i N/A hour minute N/A N/A timestring N/A %02i:%02i:%02i N/A hour minute second N/A timestring N/A host_os_is N/A N/A osname N/A N/A N/A 
    Check to see if the host OS matches the query.

    Args:
        osname (str): Common names are "posix" (linux/unix/mac) and
            "nt" (windows).

    Args:
        is_os (bool): If the os matches or not.

     N/A N/A N/A os name osname N/A get_evennia_version N/A N/A N/A N/A N/A 
    Helper method for getting the current evennia version.

    Returns:
        version (str): The version string.

     N/A evennia N/A N/A evennia __version__ N/A pypath_to_realpath N/A N/A python_path file_ending N/A .py N/A N/A 
    Converts a dotted Python path to an absolute path under the
    Evennia library directory or under the current game directory.

    Args:
        python_path (str): a dot-python path
        file_ending (str): a file ending, including the period.

    Returns:
        abspaths (list of str): The two absolute paths created by prepending
            `EVENNIA_DIR` and `GAME_DIR` respectively. These are checked for
            existence before being returned, so this may be an empty list.

     N/A pathsplit N/A N/A N/A N/A python_path strip split . N/A paths N/A N/A N/A N/A os path join N/A settings EVENNIA_DIR pathsplit N/A N/A N/A os path join N/A settings GAME_DIR pathsplit N/A file_ending N/A N/A file_ending N/A N/A N/A N/A file_ending startswith . N/A .%s file_ending file_ending N/A paths N/A N/A N/A N/A N/A p endswith file_ending N/A %s%s N/A p file_ending p N/A p paths N/A N/A p N/A p paths N/A N/A N/A os path isfile p N/A dbref N/A N/A dbref reqhash N/A True N/A N/A 
    Converts/checks if input is a valid dbref.

    Args:
        dbref (int or str): A datbase ref on the form N or #N.
        reqhash (bool, optional): Require the #N form to accept
            input as a valid dbref.

    Returns:
        dbref (int or None): The integer part of the dbref or `None`
            if input was not a valid dbref.

     N/A reqhash N/A N/A num N/A N/A N/A isinstance dbref basestring N/A N/A dbref startswith # N/A N/A N/A N/A dbref lstrip # isdigit N/A int N/A N/A dbref lstrip # None N/A N/A N/A num 0 num None N/A N/A N/A isinstance dbref basestring N/A N/A dbref N/A N/A dbref lstrip # N/A N/A N/A N/A N/A dbref isdigit N/A N/A int dbref 0 N/A int dbref None N/A N/A N/A N/A isinstance dbref int dbref None N/A dbid_to_obj N/A N/A inp objclass raise_errors N/A True N/A N/A 
    Convert a #dbid to a valid object.

    Args:
        inp (str or int): A valid dbref.
        objclass (class): A valid django model to filter against.
        raise_errors (bool, optional): Whether to raise errors
            or return `None` on errors.

    Returns:
        obj (Object or None): An entity loaded from the dbref.

    Raises:
        Exception: If `raise_errors` is `True` and
            `objclass.objects.get(id=dbref)` did not return a valid
            object.

     N/A dbid N/A dbref inp N/A N/A dbid N/A N/A inp N/A N/A N/A N/A N/A int inp 0 N/A N/A None N/A N/A N/A ValueError N/A N/A None N/A N/A N/A N/A N/A N/A objclass objects get id inp N/A N/A N/A Exception N/A N/A raise_errors N/A N/A N/A inp N/A to_unicode N/A N/A obj encoding force_string N/A utf-8 False N/A N/A 
    This decodes a suitable object to the unicode format.

    Args:
        obj (any): Object to decode to unicode.
        encoding (str, optional): The encoding type to use for the
            dedoding.
        force_string (bool, optional): Always convert to string, no
            matter what type `obj` is initially.

    Returns:
        result (unicode or any): Will return a unicode object if input
            was a string. If input was not a string, the original will be
            returned unchanged unless `force_string` is also set.

    Notes:
        One needs to encode the obj back to utf-8 before writing to disk
        or printing. That non-string objects are let through without
        conversion is important for e.g. Attributes.

     N/A N/A force_string N/A N/A isinstance obj basestring N/A N/A N/A hasattr obj __str__ N/A N/A obj N/A N/A obj __str__ N/A N/A N/A hasattr obj __unicode__ N/A N/A obj N/A N/A obj __unicode__ N/A N/A obj N/A str obj N/A N/A N/A isinstance obj basestring N/A N/A isinstance obj unicode N/A N/A N/A N/A obj N/A unicode obj encoding N/A obj N/A N/A N/A UnicodeDecodeError N/A N/A alt_encoding ENCODINGS N/A N/A N/A N/A obj N/A unicode obj alt_encoding N/A obj N/A N/A N/A UnicodeDecodeError N/A N/A N/A N/A Exception N/A Error: '%s' contains invalid character(s) not in %s. N/A obj encoding N/A obj N/A to_str N/A N/A obj encoding force_string N/A utf-8 False N/A N/A 
    This encodes a unicode string back to byte-representation,
    for printing, writing to disk etc.

    Args:
        obj (any): Object to encode to bytecode.
        encoding (str, optional): The encoding type to use for the
            encoding.
        force_string (bool, optional): Always convert to string, no
            matter what type `obj` is initially.

    Notes:
        Non-string objects are let through without modification - this
        is required e.g. for Attributes. Use `force_string` to force
        conversion of objects to strings.

     N/A N/A force_string N/A N/A isinstance obj basestring N/A N/A N/A N/A obj N/A str obj N/A N/A N/A Exception N/A N/A obj N/A unicode obj N/A N/A N/A isinstance obj basestring N/A isinstance obj unicode N/A N/A N/A N/A obj N/A N/A obj encode encoding N/A obj N/A N/A N/A UnicodeEncodeError N/A N/A alt_encoding ENCODINGS N/A N/A N/A N/A obj N/A N/A obj encode encoding N/A obj N/A N/A N/A UnicodeEncodeError N/A N/A N/A N/A Exception N/A Error: Unicode could not encode unicode string '%s'(%s) to a bytestring.  N/A obj encoding N/A obj N/A validate_email_address N/A N/A emailaddress N/A N/A N/A 
    Checks if an email address is syntactically correct.

    Args:
        emailaddress (str): Email address to validate.

    Returns:
        is_valid (bool): If this is a valid email or not.

    Notes.
        (This snippet was adapted from
        http://commandline.org.uk/python/email-syntax-check.)

     N/A emailaddress N/A %s emailaddress N/A domains N/A aero asia biz cat com coop edu gov info int jobs mil mobi museum name net org pro tel travel N/A N/A N/A len emailaddress 7 N/A N/A False N/A N/A N/A N/A localpart domainname N/A N/A emailaddress rsplit @ 1 N/A N/A host toplevel N/A N/A domainname rsplit . 1 N/A N/A N/A ValueError N/A N/A False N/A N/A N/A N/A len toplevel 2 N/A toplevel domains N/A N/A False N/A i -_.%+. N/A N/A localpart N/A N/A localpart replace i N/A i -_. N/A N/A host N/A N/A host replace i N/A N/A N/A N/A localpart isalnum N/A N/A host isalnum N/A N/A True N/A N/A False N/A inherits_from N/A N/A obj parent N/A N/A N/A 
    Takes an object and tries to determine if it inherits at *any*
    distance from parent.

    Args:
        obj (any): Object to analyze. This may be either an instance
            or a class.
        parent (any): Can be either instance, class or python path to class.

    Returns:
        inherits_from (bool): If `parent` is a parent to `obj` or not.

    Notes:
        What differs this function from e.g.  `isinstance()` is that `obj`
        may be both an instance and a class, and parent may be an
        instance, a class, or the python path to a class (counting from
        the evennia root directory).

     N/A N/A callable obj N/A N/A obj_paths N/A N/A %s.%s N/A N/A mod __module__ N/A mod __name__ N/A mod N/A N/A obj mro N/A N/A obj_paths N/A N/A %s.%s N/A N/A mod __module__ N/A mod __name__ N/A mod N/A N/A N/A obj __class__ mro N/A N/A isinstance parent basestring N/A N/A parent_path parent N/A N/A N/A callable parent N/A N/A parent_path N/A %s.%s N/A N/A parent __module__ N/A parent __name__ N/A N/A parent_path N/A %s.%s N/A N/A N/A parent __class__ __module__ N/A N/A parent __class__ __name__ N/A N/A any N/A 1 N/A obj_path obj_paths N/A obj_path parent_path N/A server_services N/A N/A N/A N/A N/A 
    Lists all services active on the Server. Observe that since
    services are launched in memory, this function will only return
    any results if called from inside the game.

    Returns:
        services (dict): A dict of available services.

     evennia.server.sessionhandler SESSIONS N/A N/A N/A hasattr SESSIONS server N/A hasattr N/A SESSIONS server services N/A N/A server N/A N/A N/A SESSIONS server services namedServices N/A N/A server N/A N/A SESSIONS N/A server N/A uses_database N/A N/A name N/A sqlite3 N/A N/A 
    Checks if the game is currently using a given database. This is a
    shortcut to having to use the full backend name.

    Args:
        name (str): One of 'sqlite3', 'mysql', 'postgresql_psycopg2'
        or 'oracle'.

    Returns:
        uses (bool): If the given database is used or not.

     N/A N/A N/A engine N/A N/A N/A settings DATABASES N/A default N/A ENGINE N/A N/A N/A KeyError N/A N/A engine N/A settings DATABASE_ENGINE N/A N/A engine N/A django.db.backends.%s name N/A delay N/A N/A delay callback retval N/A 2 None None N/A N/A 
    Delay the return of a value.

    Args:
      delay (int or float): The delay in seconds
      callback (callable, optional): Will be called without arguments
        or with `retval` after delay seconds.
      retval (any, optional): Whis will be returned by this function
        after a delay, or as input to callback.

    Returns:
        deferred (deferred): Will fire fire with callback after
            `delay` seconds. Note that if `delay()` is used in the
            commandhandler callback chain, the callback chain can be
            defined directly in the command body and don't need to be
            specified here.

     N/A callb N/A callback N/A N/A N/A defer Deferred callback N/A N/A retval None N/A N/A N/A N/A reactor callLater delay callb retval N/A N/A N/A N/A reactor callLater delay callb N/A N/A _TYPECLASSMODELS None N/A _OBJECTMODELS None clean_object_caches N/A N/A obj N/A N/A N/A 
    Clean all object caches on the given object.

    Args:
        obj (Object instace): An object whose caches to clean.

    Notes:
        This is only the contents cache these days.

     N/A _TYPECLASSMODELS _OBJECTMODELS N/A N/A _TYPECLASSMODELS N/A evennia.typeclasses models _TYPECLASSMODELS N/A N/A obj N/A N/A N/A N/A N/A N/A _SA obj _contents_cache None N/A N/A N/A AttributeError N/A N/A N/A N/A N/A _DA obj cname N/A cname N/A viewkeys N/A obj __dict__ N/A N/A cname startswith _cached_db_ N/A N/A N/A hashid N/A _GA obj hashid N/A N/A N/A _TYPECLASSMODELS _ATTRIBUTE_CACHE N/A hashid N/A N/A N/A N/A AttributeError N/A N/A N/A N/A _PPOOL None N/A _PCMD None N/A _PROC_ERR A process has ended with a probable error condition: process ended by signal 9. run_async N/A N/A to_execute N/A args kwargs N/A N/A 
    Runs a function or executes a code snippet asynchronously.

    Args:
        to_execute (callable): If this is a callable, it will be
            executed with *args and non-reserved *kwargs as arguments.
            The callable will be executed using ProcPool, or in a thread
            if ProcPool is not available.

    Kwargs:
        at_return (callable): Should point to a callable with one
            argument.  It will be called with the return value from
            to_execute.
        at_return_kwargs (dict): This dictionary will be used as
            keyword arguments to the at_return callback.
        at_err (callable): This will be called with a Failure instance
            if there is an error in to_execute.
        at_err_kwargs (dict): This dictionary will be used as keyword
            arguments to the at_err errback.

    Notes:
        All other `*args` and `**kwargs` will be passed on to
        `to_execute`. Run_async will relay executed code to a thread
        or procpool.

        Use this function with restrain and only for features/commands
        that you know has no influence on the cause-and-effect order of your
        game (commands given after the async function might be executed before
        it has finished). Accessing the same property from different threads
        can lead to unpredicted behaviour if you are not careful (this is called a
        "race condition").

        Also note that some databases, notably sqlite3, don't support access from
        multiple threads simultaneously, so if you do heavy database access from
        your `to_execute` under sqlite3 you will probably run very slow or even get
        tracebacks.

     N/A callback N/A N/A kwargs pop at_return None N/A errback N/A N/A kwargs pop at_err None N/A callback_kwargs N/A N/A kwargs pop at_return_kwargs N/A N/A errback_kwargs N/A N/A kwargs pop at_err_kwargs N/A N/A N/A callable to_execute N/A N/A deferred N/A N/A threads deferToThread to_execute args kwargs N/A N/A N/A RuntimeError N/A '%s' could not be handled by run_async to_execute N/A callback N/A N/A N/A N/A deferred addCallback callback callback_kwargs N/A N/A N/A deferred addErrback errback errback_kwargs N/A check_evennia_dependencies N/A N/A N/A N/A N/A 
    Checks the versions of Evennia's dependencies including making
    some checks for runtime libraries.

    Returns:
        result (bool): `False` if a show-stopping version mismatch is
            found.

     evennia.server.evennia_launcher check_main_evennia_dependencies N/A not_error N/A check_main_evennia_dependencies N/A errstring N/A N/A south N/A settings INSTALLED_APPS N/A N/A errstring 
 ERROR: 'south' found in settings.INSTALLED_APPS. 
   South is no longer used. If this was added manually, remove it. N/A not_error False N/A N/A settings IRC_ENABLED N/A N/A N/A N/A twisted.words N/A N/A twisted words N/A N/A N/A ImportError N/A N/A errstring 
 ERROR: IRC is enabled, but twisted.words is not installed. Please install it.
   Linux Debian/Ubuntu users should install package 'python-twisted-words', others
   can get it from http://twistedmatrix.com/trac/wiki/TwistedWords. N/A not_error False N/A errstring N/A N/A errstring strip N/A errstring N/A N/A mlen N/A max N/A N/A len line N/A line N/A N/A errstring split N/A N/A N/A logger log_err N/A %s
%s
%s N/A N/A - mlen errstring N/A - mlen N/A not_error N/A has_parent N/A N/A basepath obj N/A N/A N/A 
    Checks if `basepath` is somewhere in `obj`s parent tree.

    Args:
        basepath (str): Python dotpath to compare against obj path.
        obj (any): Object whose path is to be checked.

    Returns:
        has_parent (bool): If the check was successful or not.

     N/A N/A N/A N/A any N/A cls N/A cls N/A N/A N/A obj __class__ mro N/A basepath N/A %s.%s N/A N/A cls __module__ N/A cls __name__ N/A N/A N/A N/A TypeError AttributeError N/A N/A False N/A mod_import N/A N/A module N/A N/A N/A 
    A generic Python module loader.

    Args:
        module (str, module): This can be either a Python path
            (dot-notation like `evennia.objects.models`), an absolute path
            (e.g. `/home/eve/evennia/evennia/objects.models.py`) or an
            already imported module object (e.g. `models`)
    Returns:
        module (module or None): An imported module. If the input argument was
        already a module, this is returned as-is, otherwise the path is
        parsed and imported. Returns `None` and logs error if import failed.

     N/A N/A module N/A N/A None N/A N/A isinstance module N/A types ModuleType N/A N/A mod module N/A N/A N/A N/A mod N/A __import__ module fromlist N/A None N/A N/A N/A ImportError N/A ex N/A N/A N/A N/A str ex Import by filename is not supported. N/A N/A N/A N/A N/A N/A N/A os path isabs module N/A N/A module N/A N/A N/A os path abspath module N/A N/A path filename N/A N/A module rsplit N/A N/A os path sep 1 N/A modname N/A N/A re sub \.py$ filename N/A N/A N/A result N/A N/A imp find_module modname N/A path N/A N/A N/A ImportError N/A N/A N/A N/A logger log_trace N/A Could not find module '%s' (%s.py) at path '%s' N/A modname modname path N/A N/A N/A N/A mod N/A N/A imp load_module modname result N/A N/A N/A ImportError N/A N/A N/A N/A logger log_trace N/A Could not find or import module %s at path '%s' N/A modname path N/A mod None N/A N/A N/A N/A result N/A 0 close N/A mod N/A all_from_module N/A N/A module N/A N/A N/A 
    Return all global-level variables from a module.

    Args:
        module (str, module): This can be either a Python path
            (dot-notation like `evennia.objects.models`), an absolute path
            (e.g. `/home/eve/evennia/evennia/objects.models.py`) or an
            already imported module object (e.g. `models`)

    Returns:
        variables (dict): A dict of {variablename: variable} for all
            variables in the given module.

    Notes:
        Ignores modules and variable names starting with an underscore.

     N/A mod N/A mod_import module N/A N/A mod N/A N/A N/A N/A N/A dict N/A N/A key val N/A N/A key val N/A N/A N/A mod __dict__ items N/A N/A N/A N/A key startswith _ N/A ismodule val N/A variable_from_module N/A N/A module variable default N/A None None N/A N/A 
    Retrieve a variable or list of variables from a module. The
    variable(s) must be defined globally in the module. If no variable
    is given (or a list entry is `None`), all global variables are
    extracted from the module.

    Args:
      module (string or module): Python path, absolute path or a module.
      variable (string or iterable, optional): Single variable name or iterable
          of variable names to extract. If not given, all variables in
          the module will be returned.
      default (string, optional): Default value to use if a variable fails to
          be extracted. Ignored if `variable` is not given.

    Returns:
        variables (value or list): A single value or a list of values
        depending on if `variable` is given or not. Errors in lists
        are replaced by the `default` argument.

     N/A N/A module N/A N/A default N/A mod N/A mod_import module N/A variable N/A N/A result N/A N/A var N/A make_iter variable N/A N/A var N/A N/A N/A N/A result append N/A N/A N/A mod __dict__ get var default N/A N/A result N/A val N/A N/A key val N/A N/A N/A mod __dict__ items N/A N/A N/A N/A key startswith _ N/A ismodule val N/A N/A N/A len result 1 N/A N/A N/A result N/A 0 N/A result N/A string_from_module N/A N/A module variable default N/A None None N/A N/A 
    This is a wrapper for `variable_from_module` that requires return
    value to be a string to pass. It's primarily used by login screen.

    Args:
      module (string or module): Python path, absolute path or a module.
      variable (string or iterable, optional): Single variable name or iterable
          of variable names to extract. If not given, all variables in
          the module will be returned.
      default (string, optional): Default value to use if a variable fails to
          be extracted. Ignored if `variable` is not given.

    Returns:
        variables (value or list): A single (string) value or a list of values
        depending on if `variable` is given or not. Errors in lists (such
        as the value not being a string) are replaced by the `default` argument.

     N/A val N/A variable_from_module module variable variable default default N/A val N/A N/A variable N/A N/A val N/A N/A result N/A v N/A v N/A make_iter val N/A isinstance v basestring N/A N/A result result default N/A default N/A random_string_from_module N/A N/A module N/A N/A N/A 
    Returns a random global string from a module.

    Args:
        module (string or module): Python path, absolute path or a module.

    Returns:
        random (string): A random stribg variable from `module`.
     N/A N/A N/A random choice N/A string_from_module module N/A fuzzy_import_from_module N/A N/A path variable default defaultpaths N/A None None N/A N/A 
    Import a variable based on a fuzzy path. First the literal
    `path` will be tried, then all given `defaultpaths` will be
    prepended to see a match is found.

    Args:
        path (str): Full or partial python path.
        variable (str): Name of variable to import from module.
        default (string, optional): Default value to use if a variable fails to
          be extracted. Ignored if `variable` is not given.
        defaultpaths (iterable, options): Python paths to attempt in order if
            importing directly from `path` doesn't work.

    Returns:
        value (any): The variable imported from the module, or `default`, if
            not found.

     N/A paths N/A N/A path N/A make_iter defaultpaths N/A modpath paths N/A N/A N/A N/A mod N/A import_module path N/A N/A N/A ImportError N/A ex N/A N/A N/A N/A N/A N/A str ex startswith N/A No module named %s path N/A N/A ex N/A N/A getattr mod variable default N/A default N/A class_from_module N/A N/A path defaultpaths N/A None N/A N/A 
    Return a class from a module, given the module's path. This is
    primarily used to convert db_typeclass_path:s to classes.

    Args:
        path (str): Full Python dot-path to module.
        defaultpaths (iterable, optional): If a direc import from `path` fails,
            try subsequent imports by prepending those paths to `path`.

    Returns:
        class (Class): An uninstatiated class recovered from path.

    Raises:
        ImportError: If all loading failed.

     N/A cls None N/A defaultpaths N/A N/A paths N/A defaultpaths N/A N/A path N/A N/A %s.%s N/A dpath path N/A dpath N/A make_iter defaultpaths N/A N/A N/A paths N/A path N/A testpath paths N/A N/A N/A . path N/A N/A N/A testpath clsname N/A N/A testpath rsplit . 1 N/A N/A N/A ImportError N/A the path '%s' is not on the form modulepath.Classname. path N/A N/A N/A mod N/A import_module testpath package evennia N/A N/A N/A ImportError N/A N/A N/A N/A len N/A trace 2 N/A N/A exc N/A N/A sys exc_info N/A N/A raise_ N/A exc N/A 1 None N/A exc N/A 2 N/A N/A N/A N/A N/A cls N/A getattr mod clsname N/A N/A N/A N/A AttributeError N/A N/A N/A N/A len N/A trace 2 N/A N/A exc N/A N/A sys exc_info N/A N/A raise_ N/A exc N/A 1 None N/A exc N/A 2 N/A N/A cls N/A N/A err N/A Could not load typeclass '%s' path N/A defaultpaths N/A N/A err N/A 
Paths searched:
    %s N/A N/A join paths N/A N/A err . N/A N/A ImportError err N/A cls N/A N/A object_from_module class_from_module init_new_player N/A N/A player N/A N/A N/A 
    Deprecated.
     evennia.utils logger N/A N/A N/A logger log_dep evennia.utils.utils.init_new_player is DEPRECATED and should not be used. N/A string_similarity N/A N/A string1 string2 N/A N/A N/A 
    This implements a "cosine-similarity" algorithm as described for example in
       *Proceedings of the 22nd International Conference on Computation
       Linguistics* (Coling 2008), pages 593-600, Manchester, August 2008.
    The measure-vectors used is simply a "bag of words" type histogram
    (but for letters).

    Args:
        string1 (str): String to compare (may contain any number of words).
        string2 (str): Second string to compare (any number of words).

    Returns:
        similarity (float): A value 0...1 rating how similar the two
            strings are.

     N/A vocabulary N/A set N/A list N/A string1 string2 N/A vec1 N/A N/A N/A string1 count v N/A v vocabulary N/A vec2 N/A N/A N/A string2 count v N/A v vocabulary N/A N/A N/A N/A N/A float N/A sum N/A N/A N/A vec1 N/A i N/A vec2 N/A i N/A i N/A range N/A len vocabulary N/A N/A N/A math sqrt N/A sum N/A N/A v1 2 N/A v1 vec1 N/A N/A math sqrt N/A sum N/A N/A v2 2 N/A v2 vec2 N/A N/A N/A ZeroDivisionError N/A N/A 0 N/A string_suggestions N/A N/A string vocabulary cutoff maxnum N/A 0.6 3 N/A N/A 
    Given a `string` and a `vocabulary`, return a match or a list of
    suggestions based on string similarity.

    Args:
        string (str): A string to search for.
        vocabulary (iterable): A list of available strings.
        cutoff (int, 0-1): Limit the similarity matches (the higher
            the value, the more exact a match is required).
        maxnum (int): Maximum number of suggestions to return.

    Returns:
        suggestions (list): Suggestions from `vocabulary` with a 
            similarity-rating that higher than or equal to `cutoff`.
            Could be empty if there are no matches.

     N/A N/A N/A N/A tup N/A 1 N/A tup N/A sorted N/A N/A N/A string_similarity string sugg sugg N/A sugg vocabulary key N/A N/A N/A tup N/A N/A tup N/A 0 reverse True N/A N/A tup N/A 0 cutoff N/A maxnum N/A string_partial_matching N/A N/A alternatives inp ret_index N/A True N/A N/A 
    Partially matches a string based on a list of `alternatives`.
    Matching is made from the start of each subword in each
    alternative. Case is not important. So e.g. "bi sh sw" or just
    "big" or "shiny" or "sw" will match "Big shiny sword". Scoring is
    done to allow to separate by most common demoninator. You will get
    multiple matches returned if appropriate.

    Args:
        alternatives (list of str): A list of possible strings to
            match.
        inp (str): Search criterion.
        ret_index (bool, optional): Return list of indices (from alternatives
            array) instead of strings.
    Returns:
        matches (list): String-matches or indices if `ret_index` is `True`.

     N/A N/A N/A alternatives N/A inp N/A N/A N/A N/A matches N/A defaultdict list N/A inp_words N/A N/A N/A N/A inp lower split N/A N/A altindex alt N/A enumerate alternatives N/A N/A alt_words N/A N/A N/A N/A alt lower split N/A last_index 0 N/A score 0 N/A inp_word inp_words N/A N/A submatch N/A N/A last_index alt_num N/A N/A alt_num alt_word N/A enumerate N/A alt_words N/A last_index N/A N/A alt_word startswith inp_word N/A submatch N/A N/A last_index N/A N/A min submatch 1 N/A score 1 N/A N/A score 0 N/A N/A score N/A N/A ret_index N/A N/A N/A N/A N/A matches N/A score append altindex N/A N/A N/A N/A N/A matches N/A score append alt N/A matches N/A N/A N/A matches N/A N/A max matches N/A N/A N/A format_table N/A N/A table extra_space N/A 1 N/A N/A 
    Note: `evennia.utils.evtable` is more powerful than this, but this
    function can be useful when the number of columns and rows are
    unknown and must be calculated on the fly.

    Args.
        table (list): A list of lists to represent columns in the
            table: `[[val,val,val,...], [val,val,val,...], ...]`, where
            each val will be placed on a separate row in the
            column. All columns must have the same number of rows (some
            positions may be empty though).
        extra_space (int, optional): Sets how much *minimum* extra
            padding (in characters) should  be left between columns.

    Returns:
        table (list): A list of lists representing the rows to print
            out one by one.

    Notes:
        The function formats the columns to be as wide as the widest member
        of each column.

    Examples:

        ```python
        for ir, row in enumarate(ftable):
            if ir == 0:
                # make first row white
                string += "
{w" + ""join(row) + "{n"
            else:
                string += "
" + "".join(row)
        print string
    ```
     N/A N/A table N/A N/A N/A N/A N/A max_widths N/A N/A max N/A N/A len N/A str val N/A val col N/A col table N/A ftable N/A N/A irow N/A range N/A len N/A table N/A 0 N/A N/A N/A N/A ftable append N/A N/A N/A N/A N/A str N/A col N/A irow ljust N/A max_widths N/A icol N/A extra_space N/A N/A icol col N/A enumerate table N/A ftable N/A get_evennia_pids N/A N/A N/A N/A N/A 
    Get the currently valid PIDs (Process IDs) of the Portal and
    Server by trying to access a PID file.

    Returns:
        server, portal (tuple): The PIDs of the respective processes,
            or two `None` values if not found.

    Examples:
        This can be used to determine if we are in a subprocess by
        something like:

        ```python
        self_pid = os.getpid()
        server_pid, portal_pid = get_evennia_pids()
        is_subprocess = self_pid not in (server_pid, portal_pid)
        ```
     N/A server_pidfile N/A N/A N/A os path join N/A settings GAME_DIR server.pid N/A portal_pidfile N/A N/A N/A os path join N/A settings GAME_DIR portal.pid N/A N/A server_pid portal_pid N/A None None N/A N/A N/A N/A os path exists server_pidfile N/A N/A f N/A open server_pidfile r N/A server_pid N/A N/A f read N/A N/A N/A f close N/A N/A N/A N/A os path exists portal_pidfile N/A N/A f N/A open portal_pidfile r N/A portal_pid N/A N/A f read N/A N/A N/A f close N/A N/A server_pid portal_pid N/A N/A N/A N/A int server_pid N/A int portal_pid N/A N/A None None N/A gc get_referents sys getsizeof deepsize N/A N/A obj max_depth N/A 4 N/A N/A 
    Get not only size of the given object, but also the size of
    objects referenced by the object, down to `max_depth` distance
    from the object.

    Args:
        obj (object): the object to be measured.
        max_depth (int, optional): maximum referential distance
            from `obj` that `deepsize()` should cover for
            measuring objects referenced by `obj`.

    Returns:
        size (int): deepsize of `obj` in Bytes.

    Notes:
        This measure is necessarily approximate since some
        memory is shared between objects. The `max_depth` of 4 is roughly
        tested to give reasonable size information about database models
        and their handlers.

     _recurse N/A N/A o dct depth N/A N/A N/A N/A N/A max_depth 0 N/A depth max_depth N/A N/A N/A ref N/A get_referents o N/A N/A idr N/A id ref N/A N/A N/A idr dct N/A N/A N/A dct N/A idr N/A ref N/A getsizeof ref default 0 N/A N/A _recurse ref dct N/A depth 1 N/A N/A sizedict N/A N/A N/A _recurse obj sizedict 0 N/A size N/A N/A getsizeof obj N/A sum N/A N/A p N/A 1 N/A p N/A N/A sizedict values N/A size N/A N/A _missing N/A object lazy_property N/A object N/A N/A 
    Delays loading of property until first access. Credit goes to the
    Implementation in the werkzeug suite:
    http://werkzeug.pocoo.org/docs/utils/#werkzeug.utils.cached_property

    This should be used as a decorator in a class and in Evennia is
    mainly used to lazy-load handlers:

        ```python
        @lazy_property
        def attributes(self):
            return AttributeHandler(self)
        ```

    Once initialized, the `AttributeHandler` will be available as a
    property "attributes" on the object.

     __init__ N/A N/A self func name doc N/A None None N/A N/A Store all properties for now N/A N/A self __name__ N/A name N/A func __name__ N/A N/A self __module__ N/A func __module__ N/A N/A self __doc__ N/A doc N/A func __doc__ N/A N/A self func func N/A __get__ N/A N/A self obj type N/A None N/A N/A Triggers initialization N/A N/A obj None N/A N/A self N/A value N/A N/A N/A obj __dict__ get N/A self __name__ _missing N/A N/A value _missing N/A N/A value N/A N/A self func obj N/A N/A N/A obj __dict__ N/A N/A self __name__ value N/A value N/A N/A N/A _STRIP_ANSI None N/A _RE_CONTROL_CHAR N/A N/A re compile N/A [%s] N/A N/A re escape N/A N/A join N/A N/A unichr c N/A c N/A range 0 32 strip_control_sequences N/A N/A string N/A N/A N/A 
    Remove non-print text sequences.

    Args:
        string (str): Text to strip.

    Returns.
        text (str): Stripped text.

     N/A _STRIP_ANSI N/A N/A _STRIP_ANSI N/A evennia.utils.ansi strip_raw_ansi _STRIP_ANSI N/A N/A N/A _RE_CONTROL_CHAR sub N/A _STRIP_ANSI string N/A calledby N/A N/A callerdepth N/A 1 N/A N/A 
    Only to be used for debug purposes. Insert this debug function in
    another function; it will print which function called it.

    Args:
        callerdepth (int): Must be larger than 0. When > 1, it will
            print the caller of the caller etc.

    Returns:
        calledby (str): A debug string detailing which routine called
            us.

     N/A inspect os N/A stack N/A N/A inspect stack N/A callerdepth N/A min N/A max 2 N/A callerdepth 1 N/A N/A len stack 1 N/A frame N/A N/A N/A inspect stack N/A callerdepth N/A path N/A N/A N/A N/A os path sep join N/A N/A N/A N/A frame N/A 1 rsplit N/A N/A os path sep 2 N/A -2 N/A N/A [called by '%s': %s:%s %s] N/A N/A frame N/A 3 path N/A frame N/A 2 N/A frame N/A 4 N/A m_len N/A N/A target N/A N/A N/A 
    Provides length checking for strings with MXP patterns, and falls
    back to normal len for other objects.

    Args:
        target (string): A string with potential MXP components
            to search.

    Returns:
        length (int): The length of `target`, ignoring MXP components.

     evennia.utils.ansi ANSI_PARSER N/A N/A inherits_from target basestring N/A N/A N/A len N/A N/A ANSI_PARSER strip_mxp target N/A N/A len target N/A at_search_result N/A N/A matches caller query quiet N/A False kwargs N/A N/A 
    This is a generic hook for handling all processing of a search
    result, including error reporting.

    Args:
        matches (list): This is a list of 0, 1 or more typeclass instances,
            the matched result of the search. If 0, a nomatch error should
            be echoed, and if >1, multimatch errors should be given. Only
            if a single match should the result pass through.
        caller (Object): The object performing the search and/or which should
        receive error messages.
    query (str, optional): The search query used to produce `matches`.
        quiet (bool, optional): If `True`, no messages will be echoed to caller
            on errors.

    Kwargs:
        nofound_string (str): Replacement string to echo on a notfound error.
        multimatch_string (str): Replacement string to echo on a multimatch error.

    Returns:
        processed_result (Object or None): This is always a single result
            or `None`. If `None`, any error reporting/handling should
            already have happened.
     N/A error N/A N/A matches N/A N/A error N/A N/A N/A kwargs get nofound_string N/A _ N/A Could not find '%s'. query N/A matches None N/A N/A N/A N/A len matches 1 N/A N/A error N/A N/A kwargs get multimatch_string None N/A N/A error N/A N/A error N/A _ N/A More than one match for '%s' (please narrow target): query N/A N/A num result N/A enumerate matches N/A N/A error N/A 
 %i%s%s%s N/A N/A num 1 _MULTIMATCH_SEPARATOR N/A N/A hasattr result get_display_name N/A N/A result get_display_name caller N/A result key N/A N/A result get_extra_info caller N/A matches None N/A N/A matches N/A matches N/A 0 N/A N/A error N/A quiet N/A N/A N/A N/A caller msg N/A N/A error strip N/A matches N/A LimitedSizeOrderedDict N/A OrderedDict N/A N/A 
    This dictionary subclass is both ordered and limited to a maximum
    number of elements. Its main use is to hold a cache that can never
    grow out of bounds.

     __init__ N/A N/A self N/A args kwargs N/A N/A 
        Limited-size ordered dict.

        Kwargs:
            size_limit (int): Use this to limit the number of elements
                alloweds to be in this list. By default the overshooting elements
                will be removed in FIFO order.
            fifo (bool, optional): Defaults to `True`. Remove overshooting elements
                in FIFO order. If `False`, remove in FILO order.

         N/A N/A N/A N/A super LimitedSizeOrderedDict self __init__ N/A N/A self size_limit N/A N/A kwargs get size_limit None N/A N/A self filo N/A N/A N/A kwargs get fifo True N/A N/A N/A self _check_size N/A _check_size N/A N/A self N/A N/A N/A filo N/A self filo N/A N/A N/A self size_limit None N/A N/A N/A N/A self size_limit N/A len self N/A N/A N/A N/A self popitem last filo N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A N/A super LimitedSizeOrderedDict self __setitem__ key value N/A N/A N/A self _check_size N/A update N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super LimitedSizeOrderedDict self update args kwargs N/A N/A N/A self _check_size N/A N/A