]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement in-place mutation operators for MutableSet, MutableList
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Jun 2017 19:49:04 +0000 (15:49 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Jun 2017 19:49:04 +0000 (15:49 -0400)
commite8ad3988621a3caa69074fae8e9320bcabcf806d
treee94d6b745e64c7f37111afe11f0c709eed45ee8d
parentbb6a1f690d4a749df44a1ef329b66f71205968fe
Implement in-place mutation operators for MutableSet, MutableList

Implemented in-place mutation operators ``__ior__``, ``__iand__``,
``__ixor__`` and ``__isub__`` for :class:`.mutable.MutableSet`
and ``__iadd__`` for :class:`.mutable.MutableList` so that change
events are fired off when these mutator methods are used to alter the
collection.

Change-Id: Ib357a96d3b06c5deb6b53eb304a8b9f1dc9e9ede
Fixes: #3853
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/ext/mutable.py
test/ext/test_mutable.py