https://docs.python.org/2/reference/expressions.html#boolean-operations Section 5.10. Boolean operations - ends with "... not ''.)" But the sentence is meant to end with "... not '' yields True.)" -- Petr