-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-40643: Update documentations of strftime function for date, time and datetime. #22477
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
Conversation
The documentation is now clearer than before. This commit should help pandas-dev/pandas#36745.
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Hi @eiffel-fl, thanks for this PR! Do note that there is already an open issue about these, bpo-40643. There is also an existing PR on this subject, GH-20677. I suggest combining efforts on getting the previous PR into working shape, especially considering that it currently only alters the doc-strings for the pure-Python implementation, and this only alters the doc-strings for the C implementation! |
Hi @taleinat! I did not see that there was already an issue and an associated PR, I will be more attentive next time. I am not really sure but maybe both PR are needed. |
No need to apologize! In this case I happened to have reviewed that PR, so I immediately noticed that this one is related. That being said, searching for existing PRs and issues on a subject is certainly something you should always do (not only for this project). So it seems that you've learned / been reminded of something important :)
Ideally we should make one PR which identically improves the doc-strings for both the C and Python implementations of these classes. Given the existing reviews and discussion on the previously existing PR (GH-20677), and the fact that it was created first, I think we should work on that one. You can certainly pitch in to working on that PR, e.g. by creating a PR to be merged into it. You won't be the author of the squashed commit, but you'll be tagged with a special tag that will mark you as an additional author. (If this was a feature or bug-fix then you would also be mentioned in the NEWS item.) |
I agree with this point.
Not being the author of the commit is not a problem for me, the most important thing is to increase code quality. |
😄 👍
Indeed, I think that would be the best way. (For small changes, making suggestions using GitHub's interface is much simpler.) |
Hi.
First, I do hope you are all fine and the same for your relatives.
I did not open an issue on cpython bug tracking but this commit normally helps pandas-dev/pandas#36745 and also python developer.
I just simply update the documentation for strftime function for date, time and datetime.
For datetime, since it seems to inherits this function from date I had to add a new PyMethodDef entry.
If there is any problem with the code do not hesitate to say it, so I will improve it.
Best regards.
https://bugs.python.org/issue40643