os.path.exists.__name__ is different on Windows since #101196 #115012
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
OS-windows
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
On macOS/Linux and Windows (before Python 3.12):
Since Python 3.12 on Windows:
This was introduced in #101196 where optimized calls were made available on Windows.
Now, I will be honest that relying on the
__name__
foros.path.exists
is not great, but unfortunately I found this when running a test suite where we were relying on the__name__
beingexists
, which has been the case since at least Python 2.6 when I first took over maintenance of the project.CPython versions tested on:
3.8, 3.9, 3.10, 3.11, 3.12
Operating systems tested on:
Linux, macOS, Windows
The text was updated successfully, but these errors were encountered: