CMS 3D CMS Logo

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__ (self)
 
def __init__ (self, args, kw)
 
def __new__ (cls, args, kw)
 
def __repr__ (self)
 

Static Public Attributes

 clear
 
 pop
 
 popitem
 
 setdefault
 
 update
 

Properties

 _blocked_attribute = property(_blocked_attribute)
 

Private Member Functions

def _blocked_attribute (obj)
 

Private Attributes

 _cached_hash
 

Static Private Attributes

 __delitem__
 
 __setitem__
 

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  def __init__(self, *args, **kw):
39  pass
40 
def __init__(self, args, kw)
Definition: frozendict.py:38

Member Function Documentation

def frozendict.frozendict.__hash__ (   self)

Definition at line 41 of file frozendict.py.

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

Definition at line 13 of file frozendict.py.

References list().

Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().

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

Definition at line 6 of file frozendict.py.

References frozendict.frozendict._blocked_attribute.

7  raise AttributeError("A frozendict cannot be modified.")

Member Data Documentation

frozendict.frozendict.__delitem__
staticprivate

Definition at line 10 of file frozendict.py.

frozendict.frozendict.__setitem__
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
static

Definition at line 11 of file frozendict.py.

Referenced by esMonitoring.LineHistoryEnd.write().

frozendict.frozendict.popitem
static

Definition at line 11 of file frozendict.py.

frozendict.frozendict.setdefault
static

Definition at line 11 of file frozendict.py.

frozendict.frozendict.update
static

Property Documentation

frozendict.frozendict._blocked_attribute = property(_blocked_attribute)
staticprivate

Definition at line 8 of file frozendict.py.

Referenced by frozendict.frozendict._blocked_attribute().