How can I create a dict that sets a flag if it's been modified

Steve Holden steve at holdenweb.com
Thu Jan 12 15:08:18 CET 2006


Paul Rubin wrote:
> sandravandale at yahoo.com writes:
> 
>>Still, I'd love to hear how you guys would do it.
> 
> 
> Make a subclass of dict, or an object containing a dictionary, that
> has a special __setattr__ method that traps updates and sets that

/__setattr__/__setitem__/ ?

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/




More information about the Python-list mailing list