how to detect if a dictionary has been modified ?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sun Nov 23 04:18:17 EST 2008


Stef Mientki:
> I would like to detect if a dictionary has been changed.
> So I would like to have a modified-flag.

A solution is of course to create a SDict class, that works like a
normal dict, and also watches for changes and has an extra boolean
attribute.

Bye,
bearophile



More information about the Python-list mailing list