def discard(self, result):
    'Remove result from the set if it is a member.\n\n        If it is not a member, do nothing.\n\n        '
    try:
        self.remove(result)
    except KeyError:
        pass
Remove result from the set if it is a member.

If it is not a member, do nothing.
def discard(self, result):
    'Remove result from the set if it is a member.\n\n        If it is not a member, do nothing.\n\n        '
    try:
        self.remove(result)
    except KeyError:
        pass