Answer to Question #42485 in Python for sura

Question #42485
patternRE = re.compile('(^|\s|\")([^\s]+?)\",{'+str(HeaderLineIndex)+'}')


Buffer = localDisk.ReadFileBuffered(ifile, DataBufferSizeMB=1,StartPosition=0,whence=1)
compRE = re.compile(patternRE)

searchObj = compRE.search(Buffer)

print searchObj.start()
I trying extract position for each value for field city from buffer using pattern but appears error 'NoneType' object has no attribute 'start'
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS