Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-108202:calendar: DocumentTextCalendar methods#127608
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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.
Some initial comments. (I'll tag Erlend again once I consider this ready from a triage standpoint.)
It's probably worth converting the phrase "string representation" into a reference to thestr class.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
As per ZeroIntenisities suggestion
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
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.
Ok, I'll refrain from nitpicking. I don't know enough aboutcalendar to give this a green check, so I'll just tag Erlend.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
@erlend-aasland All done now. In the future do you prefer a PR for every function like hugokvs maybe it is easier to review? |
No, do not create one PR for every function. Just don't mix different types of changes in a PR (nor in an issue). This is all explained in clear text in the devguide. |
@erlend-aasland ok. Is this PR ok for you then? Are there any other changes you want before you review? This PR was originally focused on just the functions but then expanded with suggestions from other reviewers, I have reverted all of them. |
I'm torn about these changes. If you take the time to read through this issue's history, you'll find that it is in fact pretty controversial. Some core devs actively oppose documenting methods that could/should be considered helpers and/or private APIs. Other core devs lean towards that every (intentional or unintentional) public API should be documented. There is no happy path. I guess I'm fine with this; since other similar calendar formatting helpers have been documented, we might as well document the rest of them. |
I see; I'm sorry about the extra work. I did not read through all of the previous remarks. I prefer to align strictly with our recommended development guidelines and strictly keepany type of change atomic. This implies:
As with any kind of rule, there will be exceptions. But exceptions areexceptions; if they become the new norm, our guidelines become moot. Keeping changes atomic has several positive effects:
Footnotes
|
@picnixz: if you are satisfied with this, feel free to land 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.
A last markup change and we're good.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
(FTR, I still don't have the commit rights so you'll still need to hit the merge button@erlend-aasland :')) |
erlend-aasland commentedJan 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
What?! Outrageous! 😄 |
bb73426 intopython:mainUh oh!
There was an error while loading.Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
…ythonGH-127608)Document the following TextCalendar methods:- formatday()- formatmonthname()- formatweekday()- formatweekheader()(cherry picked from commitbb73426)Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
…ythonGH-127608)Document the following TextCalendar methods:- formatday()- formatmonthname()- formatweekday()- formatweekheader()(cherry picked from commitbb73426)Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
GH-128440 is a backport of this pull request to the3.13 branch. |
GH-128441 is a backport of this pull request to the3.12 branch. |
…ython#127608)Document the following TextCalendar methods:- formatday()- formatmonthname()- formatweekday()- formatweekheader()
…ython#127608)Document the following TextCalendar methods:- formatday()- formatmonthname()- formatweekday()- formatweekheader()
Uh oh!
There was an error while loading.Please reload this page.
#108202
📚 Documentation preview 📚:https://cpython-previews--127608.org.readthedocs.build/