Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2c49ffc

Browse files
committed
apply suggested change in docs
1 parent4ad7c8f commit2c49ffc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

‎Doc/library/os.path.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@ the :mod:`glob` module.)
377377

378378
Return the canonical path of the specified filename, eliminating any symbolic
379379
links encountered in the path (if they are supported by the operating
380-
system).
380+
system). On Windows, this function will also resolve and eliminate MS-DOS
381+
(also called 8.3) style names such as ``C:\\PROGRA~1\\LONGFI~1.TXT`` to
382+
``C:\\Program Files\\LongFile.txt``.
381383

382384
If a path doesn't exist or a symlink loop is encountered, and *strict* is
383385
``True``,:exc:`OSError` is raised. If *strict* is ``False``, the path is
@@ -392,9 +394,6 @@ the :mod:`glob` module.)
392394
Operating system APIs make paths canonical as needed, so it's not
393395
normally necessary to call this function.
394396

395-
In Windows, this function will also resolve and eliminate MS-DOS
396-
(also called 8.3) style file names such as ``C:\\LONGFI~1.TXT``.
397-
398397
..versionchanged::3.6
399398
Accepts a:term:`path-like object`.
400399

‎Doc/whatsnew/3.13.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Other Language Changes
9999

100100
*:func:`os.path.realpath` now resolves MS-DOS style file names even if
101101
the file is not accessible.
102-
(Contributed by Moonsik Park in:gh:`110298`.)
102+
(Contributed by Moonsik Park in:gh:`82367`.)
103103

104104
New Modules
105105
===========
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
:mod:`os.path`:
21
:func:`os.path.realpath` now resolves MS-DOS style file names even if
32
the file is not accessible. Patch by Moonsik Park.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp