

def get_member(self, client):
    matches = tuple(filter((lambda x: (x.client == client)), self.members))
    return ((len(matches) > 0) and matches[0])

dataset/ETHPy150Open mammon-ircd/mammon/mammon/channel.py Channel.get_member/original