code: def port(self, name):
          
          for p in self.ports:
              if p.name == name:
                  return p
docs: Locate a port by name.
  
          @param name: A port name.
          @type name: str
          @return: The port object.
          @rtype: L{Port}