Skip to content

[3.14] gh-84548: Document Windows specific behavior of abspath() and realpath() (GH-155388) - #155674

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-582a2d3-3.14
Aug 13, 2026
Merged

[3.14] gh-84548: Document Windows specific behavior of abspath() and realpath() (GH-155388)#155674
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-582a2d3-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

On Windows abspath() resolves a drive-relative path against the current
directory of the specified drive, capitalizes the drive letter and strips
trailing dots and spaces, so the result can differ from
normpath(join(os.getcwd(), path)). realpath() returns the path in the case
reported by the operating system.
(cherry picked from commit 582a2d3)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…ealpath() (pythonGH-155388)

On Windows abspath() resolves a drive-relative path against the current
directory of the specified drive, capitalizes the drive letter and strips
trailing dots and spaces, so the result can differ from
normpath(join(os.getcwd(), path)).  realpath() returns the path in the case
reported by the operating system.
(cherry picked from commit 582a2d3ebafa993234218470e5fbb490197d89e6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Aug 13, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Aug 13, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 13, 2026 09:54
@serhiy-storchaka
serhiy-storchaka merged commit cf5be6c into python:3.14 Aug 13, 2026
37 of 38 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 13, 2026
@miss-islington
miss-islington deleted the backport-582a2d3-3.14 branch August 13, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants