[Python-checkins] peps: Use a simpler example

antoine.pitrou python-checkins at python.org
Fri Oct 25 21:10:03 CEST 2013


http://hg.python.org/peps/rev/4cd8c76b2918
changeset:   5217:4cd8c76b2918
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Fri Oct 25 21:03:28 2013 +0200
summary:
  Use a simpler example

files:
  pep-0428.txt |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/pep-0428.txt b/pep-0428.txt
--- a/pep-0428.txt
+++ b/pep-0428.txt
@@ -217,8 +217,8 @@
     '/'
     >>> p.parts
     <PosixPath.parts: ['/', 'home', 'antoine', 'pathlib', 'setup.py']>
-    >>> list(p.parents())
-    [PosixPath('/home/antoine/pathlib'), PosixPath('/home/antoine'), PosixPath('/home'), PosixPath('/')]
+    >>> p.relative('/home/antoine')
+    PosixPath('pathlib/setup.py')
     >>> p.exists()
     True
     >>> p.st_size

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list