MutableDict does not detect clear() call

Issue #2730 resolved
Wichert Akkerman created an issue

Seen with SQLAlchemy 0.8.1.

>>> article.aspects
{'colour': 'black'}
>>> article.aspects.clear()
>>> article in meta.Session.dirty
True
>>> meta.Session.is_modified(article)
False

Rewriting the code to use {{{article.aspects = {} }}} is a possible workaround.

Comments (3)

  1. Log in to comment