I want a simple test to see if str contains any occurences of substr. I am currently using this: import string if string.find(str,substr) + 1: ...do something... But it somehow looks "ugly" to me. Is there more "standard" way to test this?