Jean-Paul Calderone wrote:
On Thu, 04 Dec 2008 14:25:48 -0500, Terry Reedy <[EMAIL PROTECTED]> wrote:[snip]In my test, I read Python25.chm with 2.5 and Python30.chm with 3.0. Rereading Python30.chm without closing *is* much faster. >>> f=open('Doc/Python30.chm','rb') >>> d=f.read() >>> d=f.read() >>> d=f.read()Did you think about what this does?
Whoops ;-) f.seek(0) first and it is maybe a bit faster, but not 'much'. -- http://mail.python.org/mailman/listinfo/python-list