Skip to content

os.path.isabs() behavior changed on Windows between 3.11.3 -> 3.13.3 #134904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
juj opened this issue May 29, 2025 · 1 comment
Closed

os.path.isabs() behavior changed on Windows between 3.11.3 -> 3.13.3 #134904

juj opened this issue May 29, 2025 · 1 comment

Comments

@juj
Copy link

juj commented May 29, 2025

Bug report

Bug description:

Was this change in behavior of os.path.isabs() intentional?

C:\emsdk\emscripten\main>%EMSDK_PYTHON%
Python 3.13.3 (tags/v3.13.3:6280bb5, Apr  8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os; os.path.isabs('/usr/something')
False
>>>
KeyboardInterrupt
>>> ^Z

C:\emsdk\emscripten\main>C:\Python311\python.exe
Python 3.11.3 (tags/v3.11.3:f3909b8, Apr  4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os; os.path.isabs('/usr/something')
True
>>>

Image

I would argue that even on Windows, having os.path.isabs('/foo/bar') return True like it used to, would make sense, though wanted to confirm that this was an intentional change that it no longer does?

CPython versions tested on:

3.13

Operating systems tested on:

Windows

@terryjreedy
Copy link
Member

No need to include a duplicate image. (I know that this is the habit elsewhere.) We prefer copy-paste and trust that people can do it competently. Someone often copy-pastes code onto their own system to to verify anyway to retest on other versions and systems.

Yes, but questions like this should be asked on forums like https://discuss.python.org/c/help/7. See https://discuss.python.org/t/is-xyz-for-instance-os-path-isabs-behavior-change-intentional-answered/93814 for a full answer.

@terryjreedy terryjreedy closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2025
@terryjreedy terryjreedy removed the type-bug An unexpected behavior, bug, or error label May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants