Back to index

python3.2  3.2.2
Public Member Functions
logging.config.ConvertingDict Class Reference

List of all members.

Public Member Functions

def __getitem__
def get
def pop

Detailed Description

A converting dictionary wrapper.

Definition at line 286 of file config.py.


Member Function Documentation

def logging.config.ConvertingDict.__getitem__ (   self,
  key 
)

Definition at line 289 of file config.py.

00289 
00290     def __getitem__(self, key):
00291         value = dict.__getitem__(self, key)
00292         result = self.configurator.convert(value)
00293         #If the converted value is different, save for next time
00294         if value is not result:
00295             self[key] = result
00296             if type(result) in (ConvertingDict, ConvertingList,
00297                                 ConvertingTuple):
00298                 result.parent = self
00299                 result.key = key
00300         return result

Here is the call graph for this function:

Here is the caller graph for this function:

def logging.config.ConvertingDict.get (   self,
  key,
  default = None 
)

Definition at line 301 of file config.py.

00301 
00302     def get(self, key, default=None):
00303         value = dict.get(self, key, default)
00304         result = self.configurator.convert(value)
00305         #If the converted value is different, save for next time
00306         if value is not result:
00307             self[key] = result
00308             if type(result) in (ConvertingDict, ConvertingList,
00309                                 ConvertingTuple):
00310                 result.parent = self
00311                 result.key = key
00312         return result

Here is the call graph for this function:

Here is the caller graph for this function:

def logging.config.ConvertingDict.pop (   self,
  key,
  default = None 
)

Definition at line 313 of file config.py.

00313 
00314     def pop(self, key, default=None):
00315         value = dict.pop(self, key, default)
00316         result = self.configurator.convert(value)
00317         if value is not result:
00318             if type(result) in (ConvertingDict, ConvertingList,
00319                                 ConvertingTuple):
00320                 result.parent = self
00321                 result.key = key
00322         return result

Here is the caller graph for this function:


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