how long a Str can be used in this python code segment?

Stephen.Wu 54wutong at gmail.com
Mon Feb 1 04:17:09 EST 2010


tmp=file.read() (very huge file)
if targetStr in tmp:
    print "find it"
else:
    print "not find"
file.close()

I checked if file.read() is huge to some extend, it doesn't work, but
could any give me some certain information on this prolbem?




More information about the Python-list mailing list