#NEWLINE# def generic_overwrite( self , key , val ) : #NEWLINE# #INDENT# a = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# overwritten = 1 #NEWLINE# a [ key ] = overwritten #NEWLINE# before_overwritten = sys . getrefcount ( overwritten ) #NEWLINE# inline_tools . inline ( 'a[key] = val;' , [ 'a' , 'key' , 'val' ] ) #NEWLINE# assert_ ( ( a [ key ] == val ) ) #NEWLINE# before = ( sys . getrefcount ( a ) , sys . getrefcount ( key ) , sys . getrefcount ( val ) ) #NEWLINE# inline_tools . inline ( 'a[key] = val;' , [ 'a' , 'key' , 'val' ] ) #NEWLINE# assert_ ( ( a [ key ] == val ) ) #NEWLINE# after = ( sys . getrefcount ( a ) , sys . getrefcount ( key ) , sys . getrefcount ( val ) ) #NEWLINE# after_overwritten = sys . getrefcount ( overwritten ) #NEWLINE# assert_ ( ( before == after ) ) #NEWLINE# assert_ ( ( before_overwritten == after_overwritten ) )