[Sqlalchemy-tickets] [sqlalchemy] #2730: MutableDict does not detect clear() call
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-05-20 15:26:51
|
#2730: MutableDict does not detect clear() call
---------------------+-----------------------------------------
Reporter: wichert | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone:
Component: ext | Severity: no triage selected yet
Keywords: | Progress State: awaiting triage
---------------------+-----------------------------------------
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.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2730>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|