You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In latest versions, there was made bad decision to replace None with False. It is now not possible to distinguis between False and not set entry because neither KeyError nor None is returned like in all other standard python interfaces (eg. dict)
Only good way to solve this would be to mimic python dict and introduce full featured get() method with user configurable default argument, which is used when there is no entry in the db with default default set to None.
Please, can you revert it back and use None in every case, where there is no single item to return or at least introduce optional default argument, so it is possible for the user to overcome this bad decision without maintaining its own downstream version.
The text was updated successfully, but these errors were encountered:
In latest versions, there was made bad decision to replace
None
withFalse
. It is now not possible to distinguis betweenFalse
and not set entry because neitherKeyError
norNone
is returned like in all other standard python interfaces (eg.dict
)Only good way to solve this would be to mimic python
dict
and introduce full featuredget()
method with user configurable default argument, which is used when there is no entry in the db with defaultdefault
set to None.Please, can you revert it back and use
None
in every case, where there is no single item to return or at least introduce optionaldefault
argument, so it is possible for the user to overcome this bad decision without maintaining its own downstream version.The text was updated successfully, but these errors were encountered: