diff options
author | Furkan Onder <furkanonder@protonmail.com> | 2021-07-12 12:48:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 12:48:01 (GMT) |
commit | 66c5853406bbcccecf35372795078c0641a5f385 (patch) | |
tree | f71438a64552e58c92eb00e3d79f99d1f8f929ce /Doc/library/os.path.rst | |
parent | 171d529a95be53128e2ec9afc756d489247c875a (diff) | |
download | cpython-66c5853406bbcccecf35372795078c0641a5f385.zip cpython-66c5853406bbcccecf35372795078c0641a5f385.tar.gz cpython-66c5853406bbcccecf35372795078c0641a5f385.tar.bz2 |
bpo-26329: update os.path.normpath documentation (GH-20138)
* bpo-26329: update os.path.normpath documentation
* Update os.path.rst
* Update posixpath.py
* update Pathname Resolution note
Diffstat (limited to 'Doc/library/os.path.rst')
-rw-r--r-- | Doc/library/os.path.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index d06d9ce..e2f4342 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -340,6 +340,14 @@ the :mod:`glob` module.) that contains symbolic links. On Windows, it converts forward slashes to backward slashes. To normalize case, use :func:`normcase`. + .. note:: + On POSIX systems, in accordance with `IEEE Std 1003.1 2013 Edition; 4.13 + Pathname Resolution <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>`_, + if a pathname begins with exactly two slashes, the first component + following the leading characters may be interpreted in an implementation-defined + manner, although more than two leading characters shall be treated as a + single character. + .. versionchanged:: 3.6 Accepts a :term:`path-like object`. |