On Jun 12, 3:44 pm, Tim Roberts <[email protected]> wrote: > It seems silly to fire up a regular expression compiler to look for a > single character. > if name.find('=') < 0 and month.find('=') < 0 and year.find('=') < 0:
If truthiness is the only concern, I prefer using `in`:
if '=' in name and '=' in month ...
--
http://mail.python.org/mailman/listinfo/python-list
