45 if isinstance(o, User):
46 return self.
_name == o._name
47 elif isinstance(o, str):
48 return self.
_name == o
50 raise TypeError(
"Expecting a User type or string to compare to.")
75 userNames.append(user.Name)
78 userNames.sort(key=str.lower)
120 return self.
_users[foundIndex]
134 raise ValueError(
"Must specify a user name to add it to the user list.")