Back to index

python3.2  3.2.2
Public Member Functions
test.test_pep292.Mapping Class Reference

List of all members.

Public Member Functions

def __getitem__

Detailed Description

Definition at line 12 of file

Member Function Documentation

def test.test_pep292.Mapping.__getitem__ (   self,

Definition at line 13 of file

00014     def __getitem__(self, name):
00015         obj = self
00016         for part in name.split('.'):
00017             try:
00018                 obj = getattr(obj, part)
00019             except AttributeError:
00020                 raise KeyError(name)
00021         return obj

Here is the call graph for this function:

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