conventions/requirements for 'is' vs '==', 'not vs '!=', etc

destroooooy destroooooy at gmail.com
Mon May 19 15:39:36 EDT 2008


I'm wondering what is the canonical usage of the keywords 'is' and
'not' when you're writing conditionals and loops. The one I've been
following is completely arbitrary--I use the symbols '==', '!=' for
numerical comparisons and the words 'is', 'not' for everything else.

Thanks in advance!



More information about the Python-list mailing list