-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
It would be nice if a 'delete_if_exists' method were available. so instead of:
if r.has('something', 'blah'):
del r['something', 'blah']
I could simply do:
r.delete_if_exists('something', 'blah')
If could return True if a deletion actually happened. False otherwise.
Or it could return None to make documentation more fluid.
It would be limited to deleting a single entry.
Ooo.. even better. Call the method 'strike' to give it a single lexicon word.
Reactions are currently unavailable