Rustom Mody <rustompm...@gmail.com> writes: > Short answer: Avoid using 'is'.
This is bad advice in a Python forum. The ‘is’ operator is commonly used in Python, so please don't advise against it in an unqualified “short answer”. > Long answer: > http://www.beyondwilber.ca/healing-thinking/non-identity-korzybski.html Interesting, but mostly a distraction for the querent here. Short answer: Use ‘use’ any time you need to compare object identity. You usually do not need to compare object identity. -- \ “Some people, when confronted with a problem, think ‘I know, | `\ I'll use regular expressions’. Now they have two problems.” | _o__) —Jamie Zawinski, in alt.religion.emacs | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list