why not "'in' in 'in'"?

jepler at unpythonic.net jepler at unpythonic.net
Thu Jun 13 00:10:12 CEST 2002


If
    'in' in 'in' == 1
then what about
    [1, 2] in [1, 2]
?  How do you tell that situation from
    [1, 2] in [[1, 2]]
?

The members of a string are characters, not arbitrary substrings.

Jeff





More information about the Python-list mailing list