From eb0946e474684271b95d2ad3a2feb1d717619320 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 4 Nov 2013 16:22:03 +0100 Subject: [PATCH] Remove stat caching --- pep-0428.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pep-0428.txt b/pep-0428.txt index 3672c16df..05321c3b9 100644 --- a/pep-0428.txt +++ b/pep-0428.txt @@ -551,9 +551,9 @@ working directory in absolute form:: File metadata ------------- -The ``stat()`` method caches and returns the file's stat() result; -``restat()`` forces refreshing of the cache. ``lstat()`` is also provided, -but doesn't have any caching behaviour:: +The ``stat()`` returns the file's stat() result; similarly, ``lstat()`` +returns the file's lstat() result (which is different iff the file is a +symbolic link):: >>> p.stat() posix.stat_result(st_mode=33277, st_ino=7483155, st_dev=2053, st_nlink=1, st_uid=500, st_gid=500, st_size=928, st_atime=1343597970, st_mtime=1328287308, st_ctime=1343597964)