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

Zack Weinberg zack@codesourcery.com
Mon, 5 Aug 2002 12:27:46 -0700


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

The operator precedence is not what you expect.

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

zw