Python interpreter bug

Fredrik Lundh fredrik at pythonware.com
Fri Oct 7 11:55:38 EDT 2005


alainpoint at yahoo.fr wrote:

> No doubt you're right but common sense dictates that membership testing
> would test identity not equality.

what does "common sense" have to say about this case:

>>> L = ("aa", "bb", "cc", "dd")
>>> S = "a" + "a"
>>> L
('aa', 'bb', 'cc', 'dd')
>>> S
'aa'
>>> S in L
# True or False ?

</F>






More information about the Python-list mailing list