Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
string._multimap Class Reference

List of all members.

Public Member Functions

def __init__
def __getitem__

Private Attributes


Detailed Description

Helper class for combining multiple mappings.

Used by .{safe_,}substitute() to combine the mapping and keyword

Definition at line 50 of file

Constructor & Destructor Documentation

def string._multimap.__init__ (   self,

Definition at line 56 of file

00057     def __init__(self, primary, secondary):
00058         self._primary = primary
00059         self._secondary = secondary

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

def string._multimap.__getitem__ (   self,

Definition at line 60 of file

00061     def __getitem__(self, key):
00062         try:
00063             return self._primary[key]
00064         except KeyError:
00065             return self._secondary[key]

Here is the call graph for this function:

Member Data Documentation

string._multimap._primary [private]

Definition at line 57 of file

string._multimap._secondary [private]

Definition at line 58 of file

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