Module ImportFrom alias Import alias FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareIn Str NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Str Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareGt Call NameLoad NameLoad Num UnaryOpNot AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore IfExp CompareNotEq Call NameLoad NameLoad Num Str Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore IfExp CompareNotEq Call NameLoad NameLoad Num Str Str Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice Num Str SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad For NameStore NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body AugAssignSub NameStore Num If CompareIn NameLoad NameLoad body Return TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd SubscriptLoad Call AttributeLoad NameLoad attr Index Num CompareIsNot SubscriptLoad NameLoad Index Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num body Assign SubscriptStore NameLoad Index Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr decorator_list Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Str body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body For NameStore TupleLoad Str Str Str body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore Call NameLoad NameLoad body If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign SubscriptStore SubscriptLoad NameLoad Index Num Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore BoolOpAnd Call AttributeLoad NameLoad attr NameLoad If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr Call NameLoad NameLoad AugAssignAdd NameStore Str Assign NameStore ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad body If BoolOpOr UnaryOpNot Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad
N/A __future__ absolute_import N/A sys format_var N/A N/A name obj N/A N/A N/A N/A N/A password name N/A isinstance obj str N/A N/A obj xxxxxxxx N/A res N/A repr obj N/A N/A N/A N/A len res 80 N/A N/A env verbose N/A N/A N/A isinstance obj list N/A N/A noun N/A N/A N/A len obj 1 items item N/A res N/A N/A [<{0} {1}>] format N/A len obj noun N/A N/A N/A isinstance obj dict N/A N/A noun N/A N/A N/A len obj 1 items item N/A res N/A N/A {{<{0} {1}>}} format N/A len obj noun N/A N/A res N/A N/A N/A res N/A 60 ... N/A res N/A -1 N/A res N/A stack_vars N/A N/A stack N/A N/A N/A Return a list of (name, value, depth) for all variables in
    the stack ``stack``. N/A result N/A N/A names N/A set N/A scope stack N/A N/A name scope N/A N/A N/A N/A names add name get_var N/A N/A name N/A N/A N/A depth N/A len stack N/A scope N/A reversed stack N/A N/A depth 1 N/A N/A name scope N/A N/A N/A depth N/A scope N/A name N/A N/A name N/A sorted names N/A N/A N/A depth value N/A get_var name N/A N/A N/A result append N/A name N/A format_var name value depth N/A result N/A _Scope N/A object N/A N/A Context manager to enter a new scope. __init__ N/A N/A self env kwargs N/A N/A N/A N/A self env env N/A N/A self kwargs kwargs N/A __enter__ N/A N/A self N/A N/A N/A envdata N/A N/A self env __dict__ N/A N/A N/A N/A envdata N/A __stack append N/A self kwargs N/A __exit__ N/A N/A self N/A exc_info N/A N/A envdata N/A N/A self env __dict__ N/A N/A N/A N/A N/A sys exc_info N/A 1 N/A N/A envdata N/A __exc_ref N/A N/A N/A sys exc_info N/A 1 N/A N/A N/A envdata N/A __exc_ref N/A N/A N/A sys exc_info N/A 1 N/A N/A envdata N/A __exc_stack N/A N/A envdata N/A __stack N/A N/A N/A N/A N/A envdata N/A __stack pop N/A N/A start __enter__ N/A stop __exit__ N/A _Swapper N/A object N/A __init__ N/A N/A self cur new N/A N/A N/A N/A self _cur cur N/A N/A self _new new N/A __enter__ N/A N/A self N/A N/A N/A key N/A __stack __exc_ref __exc_stack N/A N/A tmp N/A N/A N/A self _cur __dict__ N/A key N/A N/A N/A N/A self _cur __dict__ N/A key N/A N/A N/A self _new __dict__ N/A key N/A N/A N/A N/A self _new __dict__ N/A key tmp N/A __exit__ N/A N/A self N/A exc_info N/A N/A key N/A __stack __exc_ref __exc_stack N/A N/A tmp N/A N/A N/A self _cur __dict__ N/A key N/A N/A N/A N/A self _cur __dict__ N/A key N/A N/A N/A self _new __dict__ N/A key N/A N/A N/A N/A self _new __dict__ N/A key tmp N/A N/A _Environment N/A object N/A N/A Shared state for TestMill.
    
    This class manages for a global shared state with static and stack-wise
    dynamic binding.

    It is modeled closely after Clojure's dynamic binding of Vars. In summary:

      env.foo = 10      # Create a new dynamic variable 'foo' with value 10
                        # The value is assigned to the global scope.
      env._foo = 10     # Create a new static variable. The value is assigned
                        # to the global scope. It may not be re-bound in a sub
                        # scope.
      env.let(foo=20)   # enter a new scope, in which 'foo' = 20.
      print(env.foo)    # print the value of 'foo' in the current scope, or any
                        # parent scope, until the variable is found.
      print(env._foo)   # print the value of '_foo'. Since _foo is static, it
                        # will always be in the root scope.
     __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A self __dict__ N/A __stack N/A kwargs N/A N/A N/A self __dict__ N/A __exc_ref None N/A N/A N/A self __dict__ N/A __exc_stack N/A N/A __getattr__ N/A N/A self name N/A N/A N/A stack N/A N/A self __dict__ N/A __stack N/A scope N/A reversed stack N/A N/A N/A name scope N/A N/A N/A scope N/A name N/A N/A AttributeError name N/A __setattr__ N/A N/A self name value N/A N/A N/A Set a global variable in this environment. N/A stack N/A N/A self __dict__ N/A __stack N/A N/A N/A stack N/A 0 N/A name value N/A let N/A N/A self N/A kwargs N/A N/A Enter a new scope, and set all variables in ``kwargs`` as local
        variables in the new scope. N/A key kwargs N/A N/A N/A N/A key startswith _ N/A N/A msg Cannot create dynamic binding for static var '{0}'. N/A N/A RuntimeError N/A N/A msg format key N/A N/A _Scope self kwargs N/A update N/A N/A self env N/A N/A N/A Update this environment with variables from another environment. N/A stack N/A N/A env __dict__ N/A __stack N/A scope stack N/A N/A N/A name value N/A N/A scope items N/A N/A N/A setattr self name value N/A new N/A N/A self N/A kwargs N/A N/A Return a context manager that temporarily swaps the environment
        with a clean new environment. Useful for testing. N/A new N/A N/A type self kwargs N/A N/A _Swapper self new N/A __repr__ N/A N/A self N/A N/A N/A clsname N/A N/A self __class__ __name__ N/A stack N/A N/A self __dict__ N/A __stack N/A header N/A N/A <{0}(), <depth={1}> format clsname N/A len stack N/A exc_stack N/A N/A self __dict__ N/A __exc_stack N/A show_exc_stack N/A N/A N/A sys exc_info exc_stack N/A show_exc_stack N/A N/A header N/A N/A , <exc_depth={0}> format N/A len exc_stack N/A header > N/A lines N/A header N/A N/A N/A lines append   Current Environment: N/A N/A name value depth N/A stack_vars stack N/A N/A N/A N/A N/A N/A name startswith _ N/A self verbose N/A N/A N/A N/A lines append N/A N/A     {0}[{1}]: {2} format name depth value N/A show_exc_stack N/A N/A N/A N/A lines append   Exception Environment: N/A N/A name value depth N/A stack_vars exc_stack N/A N/A N/A N/A N/A N/A name startswith _ N/A self verbose N/A N/A N/A N/A lines append N/A N/A     {0}[{1}]: {2} format name depth value N/A N/A N/A lines append N/A res N/A N/A join lines N/A res N/A N/A N/A env N/A _Environment