GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 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  reset = True
14  while True:
15  obj = go4.NextMatchingObject(expr, folder, reset)
16  reset = False
17  if obj is None:
18  break
19  yield obj
20 
21 
22 
def MatchingObjects
Definition: go4py.py:5