Menu

PEP 851 – Add list.discard()

Python·kirara0048·about 1 month ago
#LPTocOZT
#python#redditpython#list#set#valueerror
Long article (275 words) — no AI summary yet.
Reading 0:00
15s threshold

PEP 851 – Add list.discard() https://peps.python.org/pep-0851/ Discussions-To: Discourse thread Abstract Add list.discard(x) , which removes the first item equal to x if one is present and does nothing otherwise, returning whether an item was removed.…

Anonymous readers can preview up to 1024 characters here. Log in to unlock the full article once ingest succeeds.