mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bug 990669: os.path.normpath may alter the meaning of a path if it contains
symbolic links. This has been documented in a comment since 1992, but is now in the library reference as well.
This commit is contained in:
parent
9d134b7386
commit
b112d6ed78
2 changed files with 6 additions and 1 deletions
|
@ -154,7 +154,8 @@ Normalize a pathname. This collapses redundant separators and
|
|||
up-level references, e.g. \code{A//B}, \code{A/./B} and
|
||||
\code{A/foo/../B} all become \code{A/B}. It does not normalize the
|
||||
case (use \function{normcase()} for that). On Windows, it converts
|
||||
forward slashes to backward slashes.
|
||||
forward slashes to backward slashes. It should be understood that this may
|
||||
change the meaning of the path if it contains symbolic links!
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{realpath}{path}
|
||||
|
|
|
@ -77,6 +77,10 @@ C API
|
|||
Documentation
|
||||
-------------
|
||||
|
||||
- bug 990669: os.path.normpath may alter the meaning of a path if it contains
|
||||
symbolic links. This has been documented in a comment since 1992, but is now in
|
||||
the library reference as well.
|
||||
|
||||
New platforms
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue