Eidolon
Public Member Functions | Public Attributes | List of all members
MutableDict Class Reference

Inherits MutableMapping, and dict.

Collaboration diagram for MutableDict:
Collaboration graph

Public Member Functions

def __init__ (self, pairs, kwargs)
 
def __len__ (self)
 
def __iter__ (self)
 
def __contains__ (self, key)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __delitem__ (self, key)
 
def values (self)
 
def items (self)
 
def keys (self)
 

Public Attributes

 realkeys
 

Detailed Description

Implements a dictionary with the same interface as dict which allows mutable keys. These are stored internally and
the actual dict implementation uses the values returned by id() as keys, which is a value assumed never to change
throughout an object's life so mutability isn't a concern for correctness.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  pairs,
  kwargs 
)

Member Function Documentation

◆ __contains__()

def __contains__ (   self,
  key 
)

◆ __delitem__()

def __delitem__ (   self,
  key 
)

◆ __getitem__()

def __getitem__ (   self,
  key 
)

◆ __iter__()

def __iter__ (   self)

◆ __len__()

def __len__ (   self)

◆ __setitem__()

def __setitem__ (   self,
  key,
  value 
)

◆ items()

def items (   self)

◆ keys()

def keys (   self)
Here is the call graph for this function:

◆ values()

def values (   self)
Here is the caller graph for this function:

Member Data Documentation

◆ realkeys

realkeys

The documentation for this class was generated from the following file: