Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-582a2d3-3.15
Open

[3.15] gh-84548: Document Windows specific behavior of abspath() and realpath() (GH-155388)#155673
miss-islington wants to merge 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 582a2d3ebafa993234218470e5fbb490197d89e6)

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

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants