def __getitem__(self, item):
if isinstance(item, str):<EOL><INDENT>if self._dev_auto_pk:<EOL><INDENT>raise KeyError(f"<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>return self._records[item]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise KeyError(f"<STR_LIT>")<EOL><DEDENT><DEDENT>if isinstance(item, int):<EOL><INDENT>return self.select()[item]  <EOL><DEDENT>raise KeyError("<STR_LIT>")<EOL>
Parameters
----------
item: str or int
    if str: value of record name. If table does not have a name field, raises a KeyError
    if int: record position (records are ordered by their content, not by creation order)

Returns
-------
Record instance