When searching user:674039 -[python]
it correctly finds my results that are not tagged Python.
But searching user:674039 [-python]
, which is what I'd incorrectly guessed the syntax would be, the result shows:
I think it's misleading: it looks like the syntax was correct and there were no results. I only knew that something was off because I was sure there should be some results.
Instead, this page could do something more sensible like:
- Autocorrect query to
-[python]
instead of[-python]
, or - Display error message that tag
[-python]
doesn't exist or is invalid, or - Show some sort of "Did you mean
-[python]
" message.
-[-python]
producesResults tagged with not not [python]
... and matches posts both with and without [python].-python
, of which there should be none. --[-python]
is a query I'd write if I wanted to find questions with any tag that's not equal to python (i.e. the question must have tags that aren't 'python'), which is different from only questions without the python tag.[-python]
just redirects to/questions
, which is also an unexpected behavior (because nonexisting tags would still be shown, just with 0 questions)