CMS 3D CMS Logo

List of all members | Public Member Functions | Properties | Private Member Functions
DictTypes.SortedAndFixedKeysDict Class Reference
Inheritance diagram for DictTypes.SortedAndFixedKeysDict:
DictTypes.SortedKeysDict

Public Member Functions

def __init__ (self, args, kw)
 
def __new__ (cls, args, kw)
 
def __repr__ (self)
 
- Public Member Functions inherited from DictTypes.SortedKeysDict
def __delitem__ (self, key)
 
def __init__ (self, args, kw)
 
def __iter__ (self)
 
def __repr__ (self)
 
def __setitem__ (self, key, value)
 
def items (self)
 
def iteritems (self)
 
def iterkeys (self)
 
def itervalues (self)
 
def keys (self)
 
def values (self)
 

Properties

 _blocked_attribute = property(_blocked_attribute)
 

Private Member Functions

def _blocked_attribute (obj)
 

Additional Inherited Members

- Public Attributes inherited from DictTypes.SortedKeysDict
 list
 

Detailed Description

a sorted dictionary with fixed/frozen keys

Definition at line 54 of file DictTypes.py.

Constructor & Destructor Documentation

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

Definition at line 65 of file DictTypes.py.

65  def __init__(self, *args, **kw):
66  pass
def __init__(self, args, kw)
Definition: DictTypes.py:65

Member Function Documentation

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

Definition at line 61 of file DictTypes.py.

Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().

61  def __new__(cls, *args, **kw):
62  new = SortedKeysDict.__new__(cls)
63  SortedKeysDict.__init__(new, *args, **kw)
64  return new
def __new__(cls, args, kw)
Definition: DictTypes.py:61
def DictTypes.SortedAndFixedKeysDict.__repr__ (   self)

Definition at line 67 of file DictTypes.py.

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

Definition at line 56 of file DictTypes.py.

References DictTypes.SortedAndFixedKeysDict._blocked_attribute.

57  raise AttributeError("A SortedAndFixedKeysDict cannot be modified.")

Property Documentation

DictTypes.SortedAndFixedKeysDict._blocked_attribute = property(_blocked_attribute)
staticprivate

Definition at line 58 of file DictTypes.py.

Referenced by DictTypes.SortedAndFixedKeysDict._blocked_attribute().