Skip to content

gh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekday #127579

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

Merged
merged 19 commits into from
Jan 6, 2025

Conversation

StanFromIreland
Copy link
Contributor

@StanFromIreland StanFromIreland commented Dec 3, 2024

#108202

This was discussed in the Documentation Community Meeting and as per the issue I have finished documenting the undocumented functions in calendar. I believe .firstweekday is sufficiently referenced in several places already.


📚 Documentation preview 📚: https://cpython-previews--127579.org.readthedocs.build/

Verified

This commit was signed with the committer’s verified signature. The key has expired.
spinda Naomi Smith
@erlend-aasland
Copy link
Contributor

I believe .firstweekday is sufficiently referenced in several places already.

Referenced, but still not documented. I think it would make sense to also document the firstweekday attribute in this PR.

@erlend-aasland
Copy link
Contributor

See also the discussion following the addition of the firstweekday property:

@ZeroIntensity ZeroIntensity added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Dec 4, 2024
StanFromIreland and others added 3 commits December 4, 2024 16:03

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@StanFromIreland
Copy link
Contributor Author

StanFromIreland commented Dec 4, 2024

Referenced, but still not documented. I think it would make sense to also document the firstweekday attribute in this PR.

@erlend-aasland it is now referenced. There however seems to be a conflict between firstweekday and firstweekday() please advise on what to do, should I add :no-index: as is recommended?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@eendebakpt
Copy link
Contributor

Referenced, but still not documented. I think it would make sense to also document the firstweekday attribute in this PR.

@erlend-aasland it is now referenced. There however seems to be a conflict between firstweekday and firstweekday() please advise on what to do, should I add :no-index: as is recommended?

Since the firstweekday in the module is (soft) deprecated, I think it makes sense to set :no-index: on that one.

StanFromIreland and others added 2 commits December 17, 2024 16:36
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@StanFromIreland
Copy link
Contributor Author

Added :no-index:.

@StanFromIreland
Copy link
Contributor Author

@erlend-aasland anything I should change with this PR? I modified the introduction as it referenced what I added.

StanFromIreland and others added 5 commits January 6, 2025 17:52
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@erlend-aasland erlend-aasland changed the title gh-108202: calendar: Document getfirstweekday and setfirstweekday gh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekday Jan 6, 2025
@erlend-aasland
Copy link
Contributor

Thanks. Now the PR does what the title says.

As mentioned before (and at the last docs meetup), adding documentation for these undocumented APIs is controversial. I've tried to do so in the past, but had to revert the doc additions because of pushback. I read through the old discussions (dating back to 2006) earlier today; you can find them on the issue at #108202 (comment). It is a heated topic.

I'll quote Serhiy again:

But first than documenting these particular method or two, we should decide whether they should be documented at all.

See past issues with the calendar module. There may be requests for undocumented methods, and some of them may even be rejected already. I think this has already been discussed.

I named my issue deliberately Docs: the calendar module lacks documentation for several APIs, and not Docs: add documentation for missing calendar APIs, because we do not know if we want to add docs for all these APIs. There is no consensus.

@erlend-aasland erlend-aasland merged commit 953b49e into python:main Jan 6, 2025
29 checks passed
@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 6, 2025
…y` and `setfirstweekday` (pythonGH-127579)

(cherry picked from commit 953b49e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Jan 6, 2025

GH-128564 is a backport of this pull request to the 3.13 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 6, 2025
…y` and `setfirstweekday` (pythonGH-127579)

(cherry picked from commit 953b49e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 6, 2025
@bedevere-app
Copy link

bedevere-app bot commented Jan 6, 2025

GH-128565 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Jan 6, 2025
erlend-aasland pushed a commit that referenced this pull request Jan 6, 2025
…ay` and `setfirstweekday` (GH-127579) (#128564)

(cherry picked from commit 953b49e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
erlend-aasland pushed a commit that referenced this pull request Jan 6, 2025
…ay` and `setfirstweekday` (GH-127579) (#128565)

(cherry picked from commit 953b49e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants