def __eq__(self, cmd):
        try:
            # first assume input is a command (the most common case)
            return self._matchset.intersection(cmd._matchset)
            #return cmd.key in self._matchset
        except AttributeError:
            # probably got a string
            return cmd in self._matchset
Compare two command instances to each other by matching their
dataset/ETHPy150Open evennia/evennia/evennia/commands/command.py/Command.__eq__