[Python-Dev] Suirprise!

Gordon McMillan gmcm@hypernet.com
Sat, 21 Apr 2001 13:25:15 -0400


> >>>>> "TP" == Tim Peters <tim.one@home.com> writes:
> 
>     TP> It's "correct".  I've been using Python longer than Guido
>     TP> <wink>, and I'm amazed this is the first time I got bit
>     by TP> this!  Here's a hint:

[Barry]
> Oh, that is twisted! :)
> 
> Let's throw in some parentheses just to confuse people even more:
...
> gotta-leave-something-`in'-there-for-job-security-ly y'rs,

You're safely employed for years:

>>> 'a' in 'abc' == 1
0
>>> 'a' in 'abc' == 'a'
0
>>> 'a' in 'abc' == 'a' in 'abc'
0

but-a-raise-is-out-of-the-question-ly y'rs

- Gordon