GSI Object Oriented Online Offline (Go4)  GO4-5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
go4py.py
Go to the documentation of this file.
1 
2 import go4
3 
4 
5 def MatchingObjects(expr="*", folder="*"):
6  """
7  Pythonic version of NextMatchingObject
8  Iterate over objects matching expr starting from folder
9  For "*" and "/" as folder, the root folder will be used
10  """
11  if folder in ["*", "/"]:
12  folder = None
13  yield go4.NextMatchingObject(expr, folder, True)
14  while True:
15  obj = go4.NextMatchingObject(expr, folder, False)
16  if obj is None:
17  break
18  yield obj
19 
20 
21 
def MatchingObjects
Definition: go4py.py:5