<s> from . code_tracing import CodeInverter <EOL> class StandardInverter ( CodeInverter ) : <EOL> """<STR_LIT>""" <EOL> __slots__ = '<STR_LIT>' <EOL> def __init__ ( self , scope ) : <EOL> """<STR_LIT>""" <EOL> self . scope = scope <EOL> def load_name ( self , name , value ) : <EOL> """<STR_LIT>""" <EOL> self . scope [ '<STR_LIT>' ] [ name ] = value <EOL> def load_attr ( self , obj , attr , value ) : <EOL> """<STR_LIT>""" <EOL> setattr ( obj , attr , value ) <EOL> def call_function ( self , func , argtuple , argspec , value ) : <EOL> """<STR_LIT>""" <EOL> nargs = argspec & <NUM_LIT> <EOL> nkwargs = ( argspec >> <NUM_LIT:8> ) & <NUM_LIT> <EOL> if ( func is getattr and ( nargs == <NUM_LIT:2> or nargs == <NUM_LIT:3> ) and nkwargs == <NUM_LIT:0> ) : <EOL> obj , attr = argtuple [ <NUM_LIT:0> ] , argtuple [ <NUM_LIT:1> ] <EOL> setattr ( obj , attr , value ) <EOL> else : <EOL> self . fail ( ) <EOL> def binary_subscr ( self , obj , idx , value ) : <EOL> """<STR_LIT>""" <EOL> obj [ idx ] = value </s>
