[Python-Dev] string.find() again (was Re: timsort for jython)

Jeff Epler jepler@unpythonic.net
Mon, 5 Aug 2002 14:15:28 -0500


On Mon, Aug 05, 2002 at 03:12:03PM -0400, Neal Norwitz wrote:
> 	>>> 's' in 's' == True
> 	False

>>> ('s' in 's') == True
True
>>> ('s' in 's') and ('s' == True)
False

short-circuit comparisons include == and is.