]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- reverse course in #3061 so that we instead no longer set None in the attribute
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Jun 2014 23:50:23 +0000 (19:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Jun 2014 23:50:23 +0000 (19:50 -0400)
commitf10eb28d90cbf73f4757897f52bf26722f98372e
tree0bf86fadcf85b1d254e1ae8bc32dd7db0c0e07d4
parent7e7447db1ff1a49f15269f6515a82607db9384f4
- reverse course in #3061 so that we instead no longer set None in the attribute
when we do a get; we return the None as always but we leave the dict blank
and the loader callable still in place.  The case for this implicit get on a pending object is not
super common and there really should be no change in state at all when this
operation proceeds.   This change is more dramatic as it reverses
a behavior SQLA has had since the first release.
fixes #3061
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/orm/attributes.py
test/orm/test_attributes.py
test/orm/test_inspect.py
test/orm/test_relationships.py
test/orm/test_unitofworkv2.py