Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
dfa015cf
Kaydet (Commit)
dfa015cf
authored
Şub 18, 2018
tarafından
chason
Kaydeden (comit)
Éric Araujo
Şub 18, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-31972: Improve docstrings for pathlib classes (#5310)
üst
08a6926b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
pathlib.py
Lib/pathlib.py
+29
-1
2018-01-25-14-23-12.bpo-31972.w1m_8r.rst
...xt/Documentation/2018-01-25-14-23-12.bpo-31972.w1m_8r.rst
+1
-0
No files found.
Lib/pathlib.py
Dosyayı görüntüle @
dfa015cf
...
...
@@ -584,7 +584,9 @@ class _PathParents(Sequence):
class
PurePath
(
object
):
"""PurePath represents a filesystem path and offers operations which
"""Base class for manipulating paths without I/O.
PurePath represents a filesystem path and offers operations which
don't imply any actual filesystem I/O. Depending on your system,
instantiating a PurePath will return either a PurePosixPath or a
PureWindowsPath object. You can also instantiate either of these classes
...
...
@@ -939,11 +941,21 @@ os.PathLike.register(PurePath)
class
PurePosixPath
(
PurePath
):
"""PurePath subclass for non-Windows systems.
On a POSIX system, instantiating a PurePath should return this object.
However, you can also instantiate it directly on any system.
"""
_flavour
=
_posix_flavour
__slots__
=
()
class
PureWindowsPath
(
PurePath
):
"""PurePath subclass for Windows systems.
On a Windows system, instantiating a PurePath should return this object.
However, you can also instantiate it directly on any system.
"""
_flavour
=
_windows_flavour
__slots__
=
()
...
...
@@ -952,6 +964,14 @@ class PureWindowsPath(PurePath):
class
Path
(
PurePath
):
"""PurePath subclass that can make system calls.
Path represents a filesystem path but unlike PurePath, also offers
methods to do system calls on path objects. Depending on your system,
instantiating a Path will return either a PosixPath or a WindowsPath
object. You can also instantiate a PosixPath or WindowsPath directly,
but cannot instantiate a WindowsPath on a POSIX system or vice versa.
"""
__slots__
=
(
'_accessor'
,
'_closed'
,
...
...
@@ -1427,9 +1447,17 @@ class Path(PurePath):
class
PosixPath
(
Path
,
PurePosixPath
):
"""Path subclass for non-Windows systems.
On a POSIX system, instantiating a Path should return this object.
"""
__slots__
=
()
class
WindowsPath
(
Path
,
PureWindowsPath
):
"""Path subclass for Windows systems.
On a Windows system, instantiating a Path should return this object.
"""
__slots__
=
()
def
owner
(
self
):
...
...
Misc/NEWS.d/next/Documentation/2018-01-25-14-23-12.bpo-31972.w1m_8r.rst
0 → 100644
Dosyayı görüntüle @
dfa015cf
Improve docstrings for `pathlib.PurePath` subclasses.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment