Question #42474

searchObj = compRE.search(Buffer)
print searchObj.start()

solve this problem :
'NoneType' object has no attribute 'start'

Expert's answer

This error means that the function ‘start()’ is not described in theobject compRE.Must be so: class compRE (object):             def start(self):                        # afunction body
LATEST TUTORIALS
APPROVED BY CLIENTS