]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Unify NO_VALUE and NEVER_SET
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 May 2019 22:01:07 +0000 (18:01 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 24 May 2019 22:48:01 +0000 (18:48 -0400)
commitf146f19d4bf1f9150785e22d37a62dcbe3436c9a
tree756225b1cac5d3c4f6760014c6972199f267ec2a
parent90882ed43cce26c069b6696b441b6ad8a7372301
Unify NO_VALUE and NEVER_SET

There's no real difference between these two constants
except they are used in different places and therefore allow
various codepaths to work largely by accident.   These
codepaths should be explicit.   Assign NO_VALUE and NEVER_SET
to the same constant and work towards having just one constant
for "we have no value to return right now".

Fixes: #4696
Change-Id: I7c324967952c1886bf202074d627323a2ad013cc
doc/build/changelog/unreleased_14/4696.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/mapper.py
test/orm/test_attributes.py
test/orm/test_lazy_relations.py