Re: [Tutor] File access times

2008-05-21 Thread Kent Johnson
On Wed, May 21, 2008 at 12:59 PM, W W <[EMAIL PROTECTED]> wrote: > Could it be > that the file is stored in RAM and "remembered" even though it's been > closed? Yes, the OS caches file and directory data so the second open is faster. Kent ___ Tutor mail

[Tutor] File access times

2008-05-21 Thread W W
I've just made an interesting observation, and I'm curious if anyone knows any more about it. 1 import time 2 3 start = time.time() 4 f = open("test.txt") 5 f.close() 6 end = time.time() 7 print end - start 8 9 10 start = time.time() 11 f = open("/home/wayne/python_files/test/t