Searched refs:nameOrIndex (Results 1 – 1 of 1) sorted by relevance
116 def __getitem__(self, nameOrIndex): argument120 if hasattr(nameOrIndex, "__index__"):121 index = nameOrIndex.__index__()122 elif isinstance(nameOrIndex, str):123 name = nameOrIndex127 raise KeyError(nameOrIndex)129 raise TypeError(nameOrIndex)