parameters: (self, item)
return_statement: return super().__getitem__(item)
docstring: Access entries by name or index.
docstring_summary: Access entries by name or index.
docstring_tokens: Access entries by name or index .
function: def __getitem__(self, item):
          """Access entries by name or index."""
          if isinstance(item, str):
              d = self.find_by_name(item)
              if d is None:
                  raise ValueError("No device named '%s'" % item)
              return d
          return super().__getitem__(item)
function_tokens: def __getitem__ ( self , item ) : if isinstance ( item , str ) : d = self . find_by_name ( item ) if d is None : raise ValueError ( "No device named '%s'" % item ) return d return super ( ) . __getitem__ ( item )