PyDocs

Nav

Python Runtime Services

set.discard

builtins

method of set
  • set.discard(elem, /)
Remove an element from a set if it is a member.

Unlike set.remove(), the discard() method does not raise
an exception when an element is missing from the set.
0 Examples
No examples for builtins/set.discard.
See Also
No see-alsos for builtins/set.discard
0 Notes
No notes for set.discard