bpo-26329: update os.path.normpath documentation (GH-20138) (#27095) · python/cpython@47abf24 (original) (raw)

Original file line number Diff line number Diff line change
@@ -340,6 +340,14 @@ the :mod:`glob` module.)
340 340 that contains symbolic links. On Windows, it converts forward slashes to
341 341 backward slashes. To normalize case, use :func:`normcase`.
342 342
343 + .. note::
344 + On POSIX systems, in accordance with `IEEE Std 1003.1 2013 Edition; 4.13
345 +Pathname Resolution http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1\_chap04.html#tag\_04\_13`_,
346 + if a pathname begins with exactly two slashes, the first component
347 + following the leading characters may be interpreted in an implementation-defined
348 + manner, although more than two leading characters shall be treated as a
349 + single character.
350 +
343 351 .. versionchanged:: 3.6
344 352 Accepts a :term:`path-like object`.
345 353