bpo-36960: Make datetime docs more user-friendly by bsolomon1124 · Pull Request #13410 · python/cpython (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation80 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

bsolomon1124

https://bugs.python.org/issue36960


Appreciate any core reviewer who can take the time to sit down to read through the updated version. While the diff is fairly large in terms of number of commits and lines changed, there are no drastic changes made here and I've made an effort to keep the commits modular and self-documenting.

Last rebased off master as of 2019-06-22.

@bsolomon1124 bsolomon1124 changed the titleMake datetime docs more user-friendly bpo-36960: Make datetime docs more user-friendly

May 18, 2019

alessandrocucci

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found some double spaces here and there, but this are small things.
I really like your PR, hope it will be merged!

@pganssle

I can read this more thoroughly a bit later, but I almost wonder if, considering it's a re-organization, if it would be good to get one or more reviews from someone who is not a domain expert in the datetime module. I imagine that e.g. @abalkin and I are not typical users of the datetime module.

Maybe @willingc or someone else with expertise in education?

Carreau

Carreau

Carreau

Carreau

Carreau

Carreau

Carreau

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major improvement in readability for me.

@Carreau

I can read this more thoroughly a bit later, but I almost wonder if, considering it's a re-organization, if it would be good to get one or more reviews from someone who is not a domain expert in the datetime module. I imagine that e.g. @abalkin and I are not typical users of the datetime module.

I don't think this is such a re-organisation, a couple of small paragraph have been placed in better suited location, but rarely too far from their original place. I think the impression is mostly due to git that can't really re-match some of the text with the original one.

@bsolomon1124

Many thanks for looking over this @Carreau - will make updates based on your suggestions soon.

willingc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for PR @bsolomon1124. It's a nice improvement. I've made a few suggestions to the changes. As an FYI for future large doc PRs, it makes the reviewer's task a bit easier when whitespace (one or two spaces after a period) is left as is. It's a bit quicker to skim through the content changes ☀️

Thanks also to the reviewers who have made comments too.

@bsolomon1124

Thank you @willingc , I've incorporated all of your suggestions and will keep the whitespace tip in mind in future PRs.

@willingc

Thanks @bsolomon1124 😄

@pganssle This looks good to me. If you want to give it a technical review as a datetime expert, that would be great.

willingc

@bedevere-bot

Thanks for making the requested changes!

@pganssle, @willingc: please review the changes made to this pull request.

@bsolomon1124

Hey @pganssle, I know you've got plenty going on, but would love to have your eye on the remainder of this one. I think we are about 2/3 of the way through. Sorry to pester if you already had this on your radar.

@pganssle

@bsolomon1124 Sorry, I will try to get to this as soon as I can. It was definitely on my radar as I'm very excited to get this merged, but Just reading a PR this large is very time-consuming, and I've got a pretty big backlog of things to review. Thanks for your patience.

pganssle

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsolomon1124 Very nice work here, I have finished the review and I rebased your branch against master, cleaned up some of the merge conflicts and then pushed some new commits of my own.

  1. I was able to use NORMALIZE_WHITESPACE to fix the linebreak issue: 85531ebd9f7c2ea8a3ba57a0fdd02a6616343d17
  2. I did some minor rewording (I think this is just additional fixes, not anything related to your changes): 8ea5b4f70520b8ee26471de338f1e6ce58c9a907
  3. I noticed that the paragraph about which formatting codes are supported was duplicated in two places, but neither of them seemed as good as putting it under the "Formatting codes" section, so I moved it there: 1c2803fca0914e24cea538fb60f7f7cae14a5c8c

Please let me know if you have any problems with my changes.

Note that because I did a rebase against the current master, you will need to do a force pull (or do a hard reset to the current head) before making additional changes. I think changes in the github interface will work fine, though.

@bsolomon1124

Looks awesome, thanks for rebasing and adding in your own changes @pganssle . I force pulled this branch from origin, made the html and did one more read-through, and I don't have any further edits at this point, good to go from my end.

Seriously appreciate your persistence here and have learned my lesson about making PRs more tightly-scoped in the future.

@bsolomon1124 @pganssle

This is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail.

Changes include:

This is a combination of 66 commits.

See bpo-36960: https://bugs.python.org/issue36960

@pganssle

Got this all squashed down and hopefully captured your excellently worded atomic commit messages in the combined commit message. This was one of those situations where I was pretty sad that we can only do squash merges for CPython, because it wouldn't have been too much work to do an interactive rebase and make this about 45 individual atomic commits.

🎉 Beautiful work, @bsolomon1124! 🎉

By the way, with regards to this:

Seriously appreciate your persistence here and have learned my lesson about making PRs more tightly-scoped in the future.

Please do not let the long delay in review prevent you from making ambitious changes in the future if they are warranted. This PR could have probably been broken up into a number of smaller PRs that would have been easier to merge, but this didn't have nearly the scope creep that some PRs get. Thank you for taking the time to do such a great job on this, I hope it will make things much easier for new users of datetime.

@miss-islington

Thanks @bsolomon1124 for the PR, and @pganssle for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 12, 2019

@bsolomon1124 @miss-islington

This is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail.

Changes include:

This is a combination of 66 commits.

See bpo-36960: https://bugs.python.org/issue36960 (cherry picked from commit 3fb1363)

Co-authored-by: Brad brad.solomon.1124@gmail.com

@bedevere-bot

@pganssle

I'm going to go ahead and backport this to 3.8, partially because it would be nice to get the changes in for the upcoming version and partially because it will make backporting all documentation fixes a total pain if it doesn't get backported 😛

miss-islington added a commit that referenced this pull request

Sep 12, 2019

@miss-islington @bsolomon1124

This is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail.

Changes include:

This is a combination of 66 commits.

See bpo-36960: https://bugs.python.org/issue36960 (cherry picked from commit 3fb1363)

Co-authored-by: Brad brad.solomon.1124@gmail.com

websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request

Jul 20, 2020

@bsolomon1124 @websurfer5

This is a restructuring of the datetime documentation to hopefully make them more user-friendly and approachable to new users without losing any of the detail.

Changes include:

This is a combination of 66 commits.

See bpo-36960: https://bugs.python.org/issue36960

Labels

docs

Documentation in the Doc dir