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

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

Return a value of a variable from a workspace.

ws.find(varName) -> object

If the variable has no values, the operation will not return
until it does.  In other words, this is a "blocking" operation.
findTry is the "non-blocking" version of this method.

Note that (unlike fetch) find does not remove the value.  The
value remains in the variable.

Arguments:

varName -- Name of the variable to find.

Definition at line 742 of file nwsclient.py.

00742                            :
        """Return a value of a variable from a workspace.

        ws.find(varName) -> object

        If the variable has no values, the operation will not return
        until it does.  In other words, this is a "blocking" operation.
        findTry is the "non-blocking" version of this method.

        Note that (unlike fetch) find does not remove the value.  The
        value remains in the variable.

        Arguments:

        varName -- Name of the variable to find.

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

        return self.__retrieve(varName, 'find', None)

    def findTry(self, varName, missing=None):


Generated by  Doxygen 1.6.0   Back to index