Commit 421bf4e
committed
gh-134639: Clarify what "canonical" means in os.path.realpath
Improve documentation for os.path.realpath by clearly defining what a
"canonical path" means. The updated documentation now explicitly states
that a canonical path:
- Is an absolute path
- Has all symbolic links resolved
- Is normalized (redundant separators, '.' and '..' components removed)
Also clarify platform-specific behavior:
- On Windows: resolves MS-DOS (8.3) style names and junction points
- On POSIX: roughly equivalent to the system's realpath() function
Closes #1346391 parent 3c05251 commit 421bf4e
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
410 | 418 | | |
411 | 419 | | |
412 | 420 | | |
| |||
0 commit comments