I just came across this here, always used like this:
if string1.find(string2) <> -1: pass
What does the <> ope
<>
http://docs.python.org/reference/expressions.html#notin says:
The [operators] <> and != are equivalent; for consistency with C, != is preferred. [...] The <> spelling is considered obsolescent.
!=