CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Properties | Private Member Functions | Private Attributes | Static Private Attributes
frozendict.frozendict Class Reference
Inheritance diagram for frozendict.frozendict:

Public Member Functions

def __hash__
 
def __init__
 
def __new__
 
def __repr__
 

Static Public Attributes

 pop = _blocked_attribute
 

Properties

 _blocked_attribute = property(_blocked_attribute)
 

Private Member Functions

def _blocked_attribute
 

Private Attributes

 _cached_hash
 

Static Private Attributes

 __delitem__ = _blocked_attribute
 

Detailed Description

Definition at line 5 of file frozendict.py.

Constructor & Destructor Documentation

def frozendict.frozendict.__init__ (   self,
  args,
  kw 
)

Definition at line 38 of file frozendict.py.

38 
39  def __init__(self, *args, **kw):
40  pass

Member Function Documentation

def frozendict.frozendict.__hash__ (   self)

Definition at line 41 of file frozendict.py.

41 
42  def __hash__(self):
43  try:
44  return self._cached_hash
45  except AttributeError:
46  h = self._cached_hash = hash(frozenset(self.items()))
47  return h
def frozendict.frozendict.__new__ (   cls,
  args,
  kw 
)

Definition at line 13 of file frozendict.py.

References list().

Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().

13 
14  def __new__(cls, *args, **kw):
15  new = dict.__new__(cls)
16 
17  args_ = []
18  for arg in args:
19  if isinstance(arg, dict):
20  arg = copy.copy(arg)
21  for k, v in arg.items():
22  if isinstance(v, dict):
23  arg[k] = frozendict(v)
24  elif isinstance(v, list):
25  v_ = list()
26  for elm in v:
27  if isinstance(elm, dict):
28  v_.append( frozendict(elm) )
29  else:
30  v_.append( elm )
31  arg[k] = tuple(v_)
32  args_.append( arg )
33  else:
34  args_.append( arg )
35 
36  dict.__init__(new, *args_, **kw)
37  return new
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
def frozendict.frozendict.__repr__ (   self)

Definition at line 48 of file frozendict.py.

48 
49  def __repr__(self):
50  return "frozendict(%s)" % dict.__repr__(self)
51 
def frozendict.frozendict._blocked_attribute (   obj)
private

Definition at line 6 of file frozendict.py.

References frozendict.frozendict._blocked_attribute.

6 
7  def _blocked_attribute(obj):
raise AttributeError, "A frozendict cannot be modified."

Member Data Documentation

frozendict.frozendict.__delitem__ = _blocked_attribute
staticprivate

Definition at line 10 of file frozendict.py.

frozendict.frozendict._cached_hash
private

Definition at line 45 of file frozendict.py.

Referenced by frozendict.frozendict.__hash__().

frozendict.frozendict.pop = _blocked_attribute
static

Definition at line 11 of file frozendict.py.

Property Documentation

frozendict.frozendict._blocked_attribute = property(_blocked_attribute)
staticprivate

Definition at line 8 of file frozendict.py.

Referenced by frozendict.frozendict._blocked_attribute().