Skip to content

Watching dict #2

@idotzang

Description

@idotzang

It would be great if I could do something like this and have the callback fire for dict key changes:

`
class WatchedDict(Dict, metaclass=ObjectWatchdog):
callbacks = [callback]
pass

d = WatchedDict()
d["x"] = 1
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions