(self, name)
Returns the field associated with the given field name.
Returns the field associated with the given field name.
Returns the field associated with the given field name .
def __getitem__(self, name):
        """Returns the field associated with the given field name.
        """

        if name in self._fields:
            return self._fields[name]

        for expr, fieldtype in itervalues(self._dyn_fields):
            if expr.match(name):
                return fieldtype

        raise KeyError("No field named %r" % (name,))
def __getitem__ ( self , name ) : if name in self . _fields : return self . _fields [ name ] for expr , fieldtype in itervalues ( self . _dyn_fields ) : if expr . match ( name ) : return fieldtype raise KeyError ( "No field named %r" % ( name , ) )