Skip to content

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

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-582a2d3-3.15
Aug 27, 2026
Merged

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

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 582a2d3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@read-the-docs-community

Copy link
Copy Markdown

@hugovk
hugovk merged commit 6e4aa89 into python:3.15 Aug 27, 2026
39 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 27, 2026
@miss-islington
miss-islington deleted the backport-582a2d3-3.15 branch August 27, 2026 12:50
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.

3 participants