diff options
author | Matt Chisholm <matt@theory.org> | 2014-07-27 12:15:51 +0200 |
---|---|---|
committer | Matt Chisholm <matt@theory.org> | 2014-08-09 11:02:01 +0200 |
commit | 2645c8427729733fcd3db044abe7901412890214 (patch) | |
tree | 1c1ad42f93d813842393ecc9bd6bc7c8514d4ae6 /lib/sqlalchemy/ext/mutable.py | |
parent | 35551841c522d8eb20f8e20243a5510de9d95dfc (diff) | |
download | sqlalchemy-2645c8427729733fcd3db044abe7901412890214.tar.gz |
add update() support to MutableDict
Diffstat (limited to 'lib/sqlalchemy/ext/mutable.py')
-rw-r--r-- | lib/sqlalchemy/ext/mutable.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ext/mutable.py b/lib/sqlalchemy/ext/mutable.py index 7469bcbda..3ef2f979d 100644 --- a/lib/sqlalchemy/ext/mutable.py +++ b/lib/sqlalchemy/ext/mutable.py @@ -621,6 +621,10 @@ class MutableDict(Mutable, dict): dict.__delitem__(self, key) self.changed() + def update(self, *a, **kw): + dict.update(self, *a, **kw) + self.changed() + def clear(self): dict.clear(self) self.changed() |