>> def nameCheck(self, value): >> > import re >> > tempREG = re.match('.*:.*',value) >> > return str(tempREG) != 'None' >> >> Still a syntax error here! >> > Code is working as I thought it would. What syntax error do I have?
This could be written better. def nameCheck(self, value): tempREG = re.match('.*:.*',value) return tempREG != None There's no need to convert to string. None is a type that you can check against directly. Jacob _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor