cleverdict icon indicating copy to clipboard operation
cleverdict copied to clipboard

Pass value to custom delete function

Open PFython opened this issue 4 years ago • 1 comments

.delete() currently just takes a key/attribute name argument which means the actual value will be deleted before any custom delete function is called. It may be important to have that value available (e.g. backup?)

Alternatively ensure custom delete (and save) are called BEFORE delitem etc.

PFython avatar Jan 28 '21 06:01 PFython

Labelled as "wontfix" after Version 1.8.0 simply because the main authors don't currently have the time for non essential enhancements. If there's a huge uptake in people using CleverDict and asking for this feature that may change, or if you're reading this why not Fork, develop a solution, and contribute a Pull Request yourself?

PFython avatar Jan 30 '21 01:01 PFython