#NEWLINE# def __setitem__( self , key , value ) : #NEWLINE# #INDENT# command = str ( value ) #NEWLINE# if isinstance ( key , slice ) : #NEWLINE# #INDENT# self . commands += '{}\n' . format ( command ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# key = ( Batch . clean_name ( key ) if Batch . clean_name else key ) #NEWLINE# self . commands += 'LET {} = {}\n' . format ( key , command ) #NEWLINE# VarType = BatchVariable #NEWLINE# if isinstance ( value , CreateVertexCommand ) : #NEWLINE# #INDENT# VarType = BatchVertexVariable #NEWLINE# #UNINDENT# self . variables [ key ] = VarType ( '${}' . format ( key ) , value )