I was actually searching how to override the is and is not operators. Like a query = tinydb.Query().field == value, to also be able to write Query().field is not None. But it seems I'm left with __eq__ and __ne__ for the time being, which leads to the unpythonic Query().field != None. (sarc)
- Tomasz Gandor
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
is
andis not
operators. Like aquery = tinydb.Query().field == value
, to also be able to writeQuery().field is not None
. But it seems I'm left with__eq__
and__ne__
for the time being, which leads to the unpythonicQuery().field != None
. (sarc) - Tomasz Gandor