Try to return a value of a variable in the workspace. ws.findTry(varName[, missing]) -> object If the variable has no values, the operation will return the value specified by "missing", which defaults to the value "None". Note that (unlike fetchTry) findTry does not remove the value. The value remains in the variable. Arguments: varName -- Name of the variable to use. missing -- Value to return if the variable has no values. The default is None. Definition at line 764 of file nwsclient.py. 00764 : """Try to return a value of a variable in the workspace. ws.findTry(varName[, missing]) -> object If the variable has no values, the operation will return the value specified by "missing", which defaults to the value "None". Note that (unlike fetchTry) findTry does not remove the value. The value remains in the variable. Arguments: varName -- Name of the variable to use. missing -- Value to return if the variable has no values. The default is None. """ if type(varName) != str: raise TypeError, 'variable name must be a string' try: return self.__retrieve(varName, 'findTry', missing) except: return missing def listVars(self, wsName=None, format=STRING):
|