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
{{ message }}
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
If foo is a single object, some_collection.filtered(foo=ANY) should return all objects that have a foo (which is not None, and where obj.foo doesn't throw)
If foo is a collection, some_collection.filtered(foo=ANY) should return all objects that have a non-empty foo.
Open Question
Do we need a NONE token, which is the reverse of ANY? We can usually do some_collection.filtered(foo=[]) or some_collection.filtered(foo=None), depending on the situation, but some_collection.filtered(foo=None) will support cases where obj.foo throws, and will also be a more uniform way to do this search.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
should be equivalent to:
So:
foo
is a single object,some_collection.filtered(foo=ANY)
should return all objects that have afoo
(which is notNone
, and whereobj.foo
doesn't throw)foo
is a collection,some_collection.filtered(foo=ANY)
should return all objects that have a non-emptyfoo
.Open Question
Do we need a
NONE
token, which is the reverse ofANY
? We can usually dosome_collection.filtered(foo=[])
orsome_collection.filtered(foo=None)
, depending on the situation, butsome_collection.filtered(foo=None)
will support cases whereobj.foo
throws, and will also be a more uniform way to do this search.The text was updated successfully, but these errors were encountered: