ExprTree
Class
- class classad2.ExprTree(expr=None)
An expression in the ClassAd language.
- Parameters
- eval(scope=None, target=None)
Evaluate the expression and return the corresponding Python type; either a
classad2.ClassAd
, a boolean, a string, adatetime.datetime
, a float, an integer, aclassad::Value
, or a list; the list may contain any of the above types, orclassad2.ExprTree
s.To evaluate an
classad2.ExprTree
containing attribute references, you must supply a scope. Anclassad2.ExprTree
does not record whichclassad2.ClassAd
, if any, it was extracted from.Expressions may contain
TARGET.
references, especially if they were originally intended for match-making. You may supply an additional ClassAd for resolving such references.
- simplify(scope=None, target=None)
Evaluate the expression and return an
ExprTree
.To evaluate an
classad2.ExprTree
containing attribute references, you must supply a scope. Anclassad2.ExprTree
does not record whichclassad2.ClassAd
, if any, it was extracted from.Expressions may contain
TARGET.
references, especially if they were originally intended for match-making. You may supply an additional ClassAd for resolving such references.