-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
gh-85046: Document most errno constants #126420
base: main
Are you sure you want to change the base?
Conversation
Before going further with this PR, please take examine closely the review remarks of #20665 and make sure all remarks are addressed here as well. Please also read the devguide regarding how to contribute documentation and make sure your PR aligns with the established guidelines. |
I read the discussion again carefully. I will not complete the description of the WSA constant, because errno is only used to describe the content in
|
In general, RUANG, try and get a PR to perfection locally before submitting it to us. Even as a draft, it's just extra noise on the issue tracker that can take our attention away from ready PRs. |
I found some missing WSA constant documentation and am trying to locate their descriptions. Although I haven’t found them in the Windows development guidelines yet, I’m still searching. So, I need to convert it into a draft. (You can call me James; RUANG is just an alias. Emmm Okay. They are the same person.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR does 3 things at the same time: add new error, document existing errors, change error messages. I would prefer to have one PR to each kind of change. I suggest to start with a single PR to add the new error (and close this one). (I'm not suggesting to open 3 PRs at the same time.)
To be honest, my initial PR was closed by Erlend. If separate commits are needed, perhaps you could help me reopen it, and I will handle these changes separately. |
As I said, @rruuaanng, the linked issue is about documentation, and documentation only. If more constants are to be added, IMO you should ideally open a feature request issue for those. I really do not like mixing features and bugfixes, neither in PRs nor in issues. |
@erlend-aasland |
If you want to add a new feature it is good practice to open an issue for the feature request first. |
And for the record: a new constant is a new feature. Any new API (including public constants) are features. |
Okay. I will open an issue for this later. I will also change the title of #126397 to point to the new issue. Perhaps you can help me reopen it. |
Alternatively, instead of opening a new issue, you can focus this PR only on the task described in the linked issue: Add the missing descriptions for the exiting In other words: only add documentation for the exiting errno contants. This implies that only In addition to resolving the linked issue, this will also probably result in less reviewer friction and churn. |
I will roll back the PR so that it only fixes the missing description in the |
The current PR only deals with document missing items, and adding new features has been moved to the previously opened fix plan. Thank you for your attention to this event. |
@vstinner Please review them! I'm pretty sure they're timed correctly :) Edit |
As I wrote previously, I would prefer to have a PR just to add EHWPOISON constant first. I suggest to abandon this PR for now. |
It has been opened and can convert this PR into a draft :) Edit In order to avoid spending time turning it on again after closing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote:
As I wrote previously, I would prefer to have a PR just to add EHWPOISON constant first. I suggest to abandon this PR for now.
Oh, I didn't notice that you already modified your PR to only do one thing. In this case, it's acceptable. Ignore my previous comment.
Neglecting is common :) If there is no other problem with this PR, I hope you can approve it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll look this over tomorrow and land it. |
📚 Documentation preview 📚: https://cpython-previews--126420.org.readthedocs.build/