Use a simpler example
This commit is contained in:
parent
f565b37f78
commit
f36388059e
|
@ -217,8 +217,8 @@ Some examples::
|
|||
'/'
|
||||
>>> 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
|
||||
|
|
Loading…
Reference in New Issue