how to detect if a dictionary has been modified ?
steve at REMOVE-THIS-cybersource.com.au
Sun Nov 23 20:42:26 CET 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 :)
More information about the Python-list