def __getitem__(self, name):
if len(self.__services) == <NUM_LIT:1>:<EOL><INDENT>port = self.__find(<NUM_LIT:0>)<EOL>return port[name]<EOL><DEDENT>default = self.__ds()<EOL>if default is not None:<EOL><INDENT>port = default<EOL>return port[name]<EOL><DEDENT>return self.__find(name)<EOL>
Provides selection of the I{service} by name (string) or 
index (integer).  In cases where only (1) service is defined
or a I{default} has been specified, the request is forwarded
to the L{PortSelector}.
@param name: The name (or index) of a service.
@type name: (int|str)
@return: A L{PortSelector} for the specified service.
@rtype: L{PortSelector}.