--
Ross M Karchner
import os, stat
p1 = "dict/data.noun1"
p2 = "dict/data.noun2"
f1 = file(p1,"rb")
f2 = file(p2,"rb")
offset = 20000000
f1.seek(offset)
line = f1.readline()
if len(line) == 0:
f2.seek(offset - os.stat(p1)[stat.ST_SIZE])
line = f2.readline()
print line
So is this a hack or a new feature? I can implement it in the next
revision, but then I'll need some more time to do it carefully so
there is no performance drop.
I also *think* (not 100% sure) zipped libraries can't take advantage
of GAE's python pre-compilation. At least, there's a ticket asking for
that:
http://code.google.com/p/googleappengine/issues/detail?id=4634
--
Ross M Karchner