[EMAIL PROTECTED] a écrit : (snip) > I don't think that is the definition used across computer science. > > It suddenly dawned on me that what would be best would be a contains() > (or IN syntax for those who can't afford to wait) for lists.
No need to wait:
>>> 'a' in ['a', 'b']
True
>>> ['a', 'b'].__contains__('a')
True
--
http://mail.python.org/mailman/listinfo/python-list
