Skip to content

Pure python stat.filemode(4095) gives a different filetype from the C implementation #117880

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
mattip opened this issue Apr 15, 2024 · 1 comment
Labels
type-bug An unexpected behavior, bug, or error

Comments

@mattip
Copy link
Contributor

mattip commented Apr 15, 2024

Bug report

Bug description:

>>> stat.filemode(4095)
`?rwsrwsrwt'
# Pure python
`-rwsrwsrwt'

CPython versions tested on:

3.8, 3.9, 3.10

Operating systems tested on:

Linux, macOS

@mattip mattip added the type-bug An unexpected behavior, bug, or error label Apr 15, 2024
@mattip
Copy link
Contributor Author

mattip commented Apr 15, 2024

Fixed in the resolution of #108638, but not backported to the python versions I checked. Closing, sorry for the noise.

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

No branches or pull requests

2 participants