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
bpo-38109: Add missing constants to Lib/stat.py #16665
Conversation
This looks like a good change to me! It should also have a NEWS entry, though. Just something like:
Add missing :data:`stat.S_IFDOOR`, :data:`stat.S_IFPORT`, :data:`stat.S_IFWHT`,
:func:`stat.S_ISDOOR`, :func:`stat.S_ISPORT`, and :func:`stat.S_ISWHT` values to
the Python implementation of :mod:`stat`.
I can reproduce https://bugs.python.org/issue38109 with this example:
Output:
It works as expected with this PR:
|
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT, stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to the Python implementation of the stat module. (cherry picked from commit 7bb1431) Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT, stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to the Python implementation of the stat module. (cherry picked from commit 7bb1431) Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT, stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to the Python implementation of the stat module. (cherry picked from commit 7bb1431) Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT, stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to the Python implementation of the stat module. (cherry picked from commit 7bb1431) Co-authored-by: Ronan Lamy <ronan.lamy@gmail.com>
Congrats on your first CPython contribution @rlamy! Looking forward to seeing more from you in the future. |
Ronan already helped CPython in the past :-)
|
Ah, my bad. Github’s "First-time Contributor" badge led me to believe otherwise. Thanks for the clarification @vstinner! |
Hehe. Python only migrated to Git and GitHub 2 years ago. Previously, we only kept track of the authors in the commit message, not in the author field. |
sigh I guess in the future I’ll have to check |
Add missing stat.S_IFDOOR, stat.S_IFPORT, stat.S_IFWHT, stat.S_ISDOOR, stat.S_ISPORT, and stat.S_ISWHT values to the Python implementation of the stat module.
Lib/stat.py was missing the constants S_IFDOOR, S_IFPORT, S_IFWHT as well as the related S_IS... functions. This is a port of https://bitbucket.org/pypy/pypy/commits/f245f35c61eb.
https://bugs.python.org/issue38109