Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
pip._vendor.distlib.markers.Evaluator Class Reference
Inheritance diagram for pip._vendor.distlib.markers.Evaluator:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.distlib.markers.Evaluator:
Collaboration graph
[legend]

Public Member Functions

 evaluate (self, expr, context)
 

Static Public Attributes

dict operations
 

Detailed Description

This class is used to evaluate marker expressions.

Member Function Documentation

◆ evaluate()

pip._vendor.distlib.markers.Evaluator.evaluate (   self,
  expr,
  context 
)
Evaluate a marker expression returned by the :func:`parse_requirement`
function in the specified context.

Member Data Documentation

◆ operations

dict pip._vendor.distlib.markers.Evaluator.operations
static
Initial value:
= {
'==': lambda x, y: x == y,
'===': lambda x, y: x == y,
'~=': lambda x, y: x == y or x > y,
'!=': lambda x, y: x != y,
'<': lambda x, y: x < y,
'<=': lambda x, y: x == y or x < y,
'>': lambda x, y: x > y,
'>=': lambda x, y: x == y or x > y,
'and': lambda x, y: x and y,
'or': lambda x, y: x or y,
'in': lambda x, y: x in y,
'not in': lambda x, y: x not in y,
}

The documentation for this class was generated from the following file: