5 '''list with an internal dictionary for indexing, 6 allowing to keep dictionary elements ordered. 7 keys can be everything except an integer. 15 def add( self, key, value ):
16 if isinstance(key, (int, long)):
17 raise ValueError(
"key cannot be an integer")
19 raise ValueError(
"key '{key}' already exists".
format(key=key) )
20 self.
dico[key] = len(self)
24 '''index can be a dictionary key, or an integer specifying 25 the rank of the value to be accessed 30 except (TypeError, ValueError):
37 '''These functions are quite risky...''' 39 return super(diclist, self).
__setitem__(index, value)
40 except TypeError
as ValueError:
def __setitem__(self, index, value)
def __getitem__(self, index)
def add(self, key, value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run