On 5 April 2012 21:06, Emile van Sebille <[email protected]> wrote: > Kind of begs for a contains method that returns the appropriate boolean: > > if text.contains('bob')
It's already there:
text.__contains__('bob')
It's usually spelt otherwise though:
'bob' in text
--
Arnaud
--
http://mail.python.org/mailman/listinfo/python-list
