Result of ``a is b''
Erik Max Francis
max at alcyone.com
Tue Mar 16 19:44:50 EST 2004
Skip Montanaro wrote:
> Here is my "is" rule:
>
> Use "is" to compare two objects only if one is explicitly known to
> be a
> singleton defined by the language (None, Ellipsis, True, False).
I'd add "or defined by the programmer within his code." Although
admittedly I don't use it that way much.
--
__ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
\__/ Here day fights with night.
-- (the last words of Victor Hugo)
More information about the Python-list
mailing list