how to detect if a dictionary has been modified ?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sun Nov 23 14:42:26 EST 2008
On Sun, 23 Nov 2008 09:19:38 -0800, Glenn Linderman wrote:
> Interesting technique. I must point out, though, that it doesn't
> indicate if a dict has been changed, only that potentially changing
> operations have been performed.
[...]
> The above code would declare it has, but most people, when shown before
> and after copies of the dict, with declare it hasn't.
Oh I agree entirely. But I'm not going to do *all* the work for the
original poster :)
--
Steven
More information about the Python-list
mailing list