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
1469d744
Kaydet (Commit)
1469d744
authored
Ock 06, 2016
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Cross-reference os.DirEntry and pathlib.Path for issue #22570.
üst
05075203
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
os.rst
Doc/library/os.rst
+6
-0
pathlib.rst
Doc/library/pathlib.rst
+4
-0
No files found.
Doc/library/os.rst
Dosyayı görüntüle @
1469d744
...
@@ -2035,6 +2035,12 @@ features:
...
@@ -2035,6 +2035,12 @@ features:
The result is cached on the ``DirEntry`` object. Call :func:`os.stat`
The result is cached on the ``DirEntry`` object. Call :func:`os.stat`
to fetch up-to-date information.
to fetch up-to-date information.
Note that there is a nice correspondence between several attributes
and methods of ``DirEntry`` and of :class:`pathlib.Path`. In
particular, the ``name`` and ``path`` attributes have the same
meaning, as do the ``is_dir()``, ``is_file()``, ``is_symlink()``
and ``stat()`` methods.
.. versionadded:: 3.5
.. versionadded:: 3.5
...
...
Doc/library/pathlib.rst
Dosyayı görüntüle @
1469d744
...
@@ -381,7 +381,11 @@ Pure paths provide the following methods and properties:
...
@@ -381,7 +381,11 @@ Pure paths provide the following methods and properties:
``arg = str(arg)``, this will still raise an exception if an object
``arg = str(arg)``, this will still raise an exception if an object
of some other type is given by accident.
of some other type is given by accident.
A nice advantage is that this protocol is also supported by
:class:`os.DirEntry` objects returned by :func:`os.scandir`.
.. versionadded:: 3.4.5
.. versionadded:: 3.4.5
.. versionadded:: 3.5.2
.. data:: PurePath.suffix
.. data:: PurePath.suffix
...
...
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