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 | Static Private Attributes
DictTypes.SortedAndFixedKeysDict Class Reference
Inheritance diagram for DictTypes.SortedAndFixedKeysDict:
DictTypes.SortedKeysDict

Public Member Functions

def __init__
 
def __new__
 
def __repr__
 
- Public Member Functions inherited from DictTypes.SortedKeysDict
def __delitem__
 
def __init__
 
def __iter__
 
def __repr__
 
def __setitem__
 
def items
 
def iteritems
 
def iterkeys
 
def itervalues
 
def keys
 
def values
 

Static Public Attributes

 pop = _blocked_attribute
 

Properties

 _blocked_attribute = property(_blocked_attribute)
 

Private Member Functions

def _blocked_attribute
 

Static Private Attributes

 __delitem__ = _blocked_attribute
 

Additional Inherited Members

- Public Attributes inherited from DictTypes.SortedKeysDict
 list
 

Detailed Description

a sorted dictionary with fixed/frozen keys

Definition at line 52 of file DictTypes.py.

Constructor & Destructor Documentation

def DictTypes.SortedAndFixedKeysDict.__init__ (   self,
  args,
  kw 
)

Definition at line 63 of file DictTypes.py.

63 
64  def __init__(self, *args, **kw):
pass

Member Function Documentation

def DictTypes.SortedAndFixedKeysDict.__new__ (   cls,
  args,
  kw 
)

Definition at line 59 of file DictTypes.py.

Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().

59 
60  def __new__(cls, *args, **kw):
61  new = SortedKeysDict.__new__(cls)
62  SortedKeysDict.__init__(new, *args, **kw)
return new
def DictTypes.SortedAndFixedKeysDict.__repr__ (   self)

Definition at line 65 of file DictTypes.py.

65 
66  def __repr__(self):
67  return "SortedAndFixedKeysDict(%s)" % SortedKeysDict.__repr__(self)
68 
69 
#helper based on code from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/414283
def DictTypes.SortedAndFixedKeysDict._blocked_attribute (   obj)
private

Definition at line 54 of file DictTypes.py.

References DictTypes.SortedAndFixedKeysDict._blocked_attribute.

54 
55  def _blocked_attribute(obj):
raise AttributeError, "A SortedAndFixedKeysDict cannot be modified."

Member Data Documentation

DictTypes.SortedAndFixedKeysDict.__delitem__ = _blocked_attribute
staticprivate

Definition at line 57 of file DictTypes.py.

DictTypes.SortedAndFixedKeysDict.pop = _blocked_attribute
static

Definition at line 58 of file DictTypes.py.

Referenced by esMonitoring.LineHistoryEnd.write().

Property Documentation

DictTypes.SortedAndFixedKeysDict._blocked_attribute = property(_blocked_attribute)
staticprivate

Definition at line 56 of file DictTypes.py.

Referenced by DictTypes.SortedAndFixedKeysDict._blocked_attribute().