Logo Search packages:      
Sourcecode: r-cran-nws version File versions  Download package

def nwsclient::NetWorkSpace::deleteVar (   self,
  varName 
)

Delete a variable from a workspace.

ws.deleteVar(varName)

All values of the variable are destroyed, and all currently
blocking fetch and find operations will be aborted.

Arguments:

varName -- Name of the variable to delete.

Definition at line 650 of file nwsclient.py.

00650                                 :
        """Delete a variable from a workspace.

        ws.deleteVar(varName)

        All values of the variable are destroyed, and all currently
        blocking fetch and find operations will be aborted.

        Arguments:

        varName -- Name of the variable to delete.

        """
        if type(varName) != str:
            raise TypeError, 'variable name must be a string'

        op = 'delete var'

        self.send('0003%020d%s%020d%s%020d%s' % (len(op), op, len(self.curWs), self.curWs, len(varName), varName))

        status = self.recv(4) # unused at the moment.

    def __retrieve(self, varName, op, missing):


Generated by  Doxygen 1.6.0   Back to index