def __getitem__(self, key):
    """Provides ability to lookup a schema field by position or by name.
    """
    if isinstance(key, basestring):
      return self._map.get(key, None)
    # noinspection PyCallByClass
    return list.__getitem__(self, key)
def __getitem__ ( self , key ) : if isinstance ( key , basestring ) : return self . _map . get ( key , None ) return list . __getitem__ ( self , key )
Provides ability to lookup a schema field by position or by name.