New submission from tzickel <icebr...@yahoo.com>:

Sometimes you want to do something based on if the item existed before removal, 
so instead of checking if it exists, then removing and doing something, if 
would be nice to make the function return True or False based on if the element 
existed.

----------
components: Interpreter Core
messages: 328938
nosy: tzickel
priority: normal
severity: normal
status: open
title: set.discard should return True or False based on if element existed.
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35117>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to