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

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

Return and remove a value of a variable from a workspace.

ws.fetch(varName) -> object

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

Note that if many clients are all trying to fetch from the same
variable, only one client can fetch a given value.  Other
clients may have previously seen that value using the find or
findTry method, but only one client can ever fetch or fetchTry a
given value.

Arguments:

varName -- Name of the variable to fetch.

Definition at line 690 of file nwsclient.py.

00690                             :
        """Return and remove a value of a variable from a workspace.

        ws.fetch(varName) -> object

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

        Note that if many clients are all trying to fetch from the same
        variable, only one client can fetch a given value.  Other
        clients may have previously seen that value using the find or
        findTry method, but only one client can ever fetch or fetchTry a
        given value.

        Arguments:

        varName -- Name of the variable to fetch.

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

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

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


Generated by  Doxygen 1.6.0   Back to index