From 00a5db2a5d70a1e808bcef2e6017e9f88a123e1b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 18 Nov 2013 23:49:02 +0100 Subject: [PATCH] Make owner() and group() methods, rather than properties. It didn't make sense to keep them as properties as all other metadata-querying APIs are now exposed under the form of methods (e.g. is_dir(), etc.), and there's no stat() caching anymore. --- pep-0428.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pep-0428.txt b/pep-0428.txt index 4a3c7e640..0d5f19b2b 100644 --- a/pep-0428.txt +++ b/pep-0428.txt @@ -594,12 +594,12 @@ Higher-level methods help examine the kind of the file:: False The file owner and group names (rather than numeric ids) are queried -through matching properties:: +through corresponding methods:: >>> p = Path('/etc/shadow') - >>> p.owner + >>> p.owner() 'root' - >>> p.group + >>> p.group() 'shadow'