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
5d19610f
Kaydet (Commit)
5d19610f
authored
Nis 05, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#1718017: document the relation of os.path and the posixpath, ntpath etc. modules better.
üst
75f1107b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
os.path.rst
Doc/library/os.path.rst
+16
-2
os.rst
Doc/library/os.rst
+0
-9
No files found.
Doc/library/os.path.rst
Dosyayı görüntüle @
5d19610f
:mod:`os.path` --- Common pathname manipulations
:mod:`os.path` --- Common pathname manipulations
================================================
================================================
.. module:: os.path
.. module:: os.path
:synopsis: Operations on pathnames.
:synopsis: Operations on pathnames.
.. index:: single: path; operations
.. index:: single: path; operations
This module implements some useful functions on pathnames. To read or
This module implements some useful functions on pathnames. To read or
...
@@ -18,6 +16,22 @@ write files see :func:`open`, and for accessing the filesystem see the
...
@@ -18,6 +16,22 @@ write files see :func:`open`, and for accessing the filesystem see the
:func:`splitunc` and :func:`ismount` do handle them correctly.
:func:`splitunc` and :func:`ismount` do handle them correctly.
.. note::
Since different operating systems have different path name conventions, there
are several versions of this module in the standard library. The
:mod:`os.path` module is always the path module suitable for the operating
system Python is running on, and therefore usable for local paths. However,
you can also import and use the individual modules if you want to manipulate
a path that is *always* in one of the different formats. They all have the
same interface:
* :mod:`posixpath` for UNIX-style paths
* :mod:`ntpath` for Windows paths
* :mod:`macpath` for old-style MacOS paths
* :mod:`os2emxpath` for OS/2 EMX paths
.. function:: abspath(path)
.. function:: abspath(path)
Return a normalized absolutized version of the pathname *path*. On most
Return a normalized absolutized version of the pathname *path*. On most
...
...
Doc/library/os.rst
Dosyayı görüntüle @
5d19610f
...
@@ -46,15 +46,6 @@ the :mod:`os` module, but using them is of course a threat to portability!
...
@@ -46,15 +46,6 @@ the :mod:`os` module, but using them is of course a threat to portability!
``'ce'``, ``'java'``, ``'riscos'``.
``'ce'``, ``'java'``, ``'riscos'``.
.. data:: path
The corresponding operating system dependent standard module for pathname
operations, such as :mod:`posixpath` or :mod:`ntpath`. Thus, given the proper
imports, ``os.path.split(file)`` is equivalent to but more portable than
``posixpath.split(file)``. Note that this is also an importable module: it may
be imported directly as :mod:`os.path`.
.. _os-procinfo:
.. _os-procinfo:
Process Parameters
Process Parameters
...
...
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