Bengt Richter wrote:
You are right, but OTOH the OP speaks of a flagging the dict as
modified. If she made e.g., modified a property of the dict
subclass, then retrieving the the modified flag could dynamically
check current state repr vs some prior state repr. Then the question
becomes
Just to add a word that I forgot:
Adhering to the subject line, the intent is to track modifications
of a dict.
By definition, modification of a member of a dict without replacing
the value is not considered a dict change.
I'd stick with the shallow approach.
Asking to track mutation of an
Steve Holden wrote:
Christian Tismer wrote:
Just to add a word that I forgot:
Adhering to the subject line, the intent is to track modifications
of a dict.
By definition, modification of a member of a dict without replacing
the value is not considered a dict change.
Well, I agree. But I
[EMAIL PROTECTED] wrote:
Thanks to everyone who posted comments or put some thought into this
problem.
I should have been more specific with what I want to do, from your
comments the general case of this problem, while I hate to say
impossible, is way more trouble than it's worth.
By
It's important that I can read the contents of the dict without
flagging it as modified, but I want it to set the flag the moment I add
a new element or alter an existing one (the values in the dict are
mutable), this is what makes it difficult. Because the values are
mutable I don't think you can
[EMAIL PROTECTED] wrote:
It's important that I can read the contents of the dict without
flagging it as modified, but I want it to set the flag the moment I add
a new element or alter an existing one (the values in the dict are
mutable), this is what makes it difficult. Because the values are
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
It's important that I can read the contents of the dict without
flagging it as modified, but I want it to set the flag the moment I add
a new element or alter an existing one (the values in the dict are
mutable), this is what makes it difficult.
On Thu, 12 Jan 2006 18:28:54 +, Steve Holden [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
It's important that I can read the contents of the dict without
flagging it as modified, but I want it to set the flag the moment I add
a new element or alter an existing
Steve Holden wrote:
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
It's important that I can read the contents of the dict without
flagging it as modified, but I want it to set the flag the moment I add
a new element or alter an existing one (the values in the dict are
mutable), this is
[EMAIL PROTECTED] wrote:
It's important that I can read the contents of the dict without
flagging it as modified, but I want it to set the flag the moment I add
a new element or alter an existing one (the values in the dict are
mutable), this is what makes it difficult. Because the values are
Christian Tismer wrote:
Just to add a word that I forgot:
Adhering to the subject line, the intent is to track modifications
of a dict.
By definition, modification of a member of a dict without replacing
the value is not considered a dict change.
Well, I agree. But I suppose much depends
Thanks to everyone who posted comments or put some thought into this
problem.
I should have been more specific with what I want to do, from your
comments the general case of this problem, while I hate to say
impossible, is way more trouble than it's worth.
By modified I meant that the dictionary
[EMAIL PROTECTED]
It's important that I can read the contents of the dict without
flagging it as modified, but I want it to set the flag the moment I add
a new element or alter an existing one (the values in the dict are
mutable), this is what makes it difficult. Because the values are
13 matches
Mail list logo