Skip to content

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

Merged
erlend-aasland merged 19 commits into
python:mainfrom
StanFromIreland:patch-3
Jan 6, 2025
Merged

gh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekday#127579
erlend-aasland merged 19 commits into
python:mainfrom
StanFromIreland:patch-3

Conversation

@StanFromIreland

@StanFromIrelandStanFromIreland commented Dec 3, 2024

Copy link
Copy Markdown
Member

#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/

Comment threadDoc/library/calendar.rst Outdated
@erlend-aasland

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Comment threadDoc/library/calendar.rst Outdated
@ZeroIntensityZeroIntensity added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Dec 4, 2024
StanFromIrelandand others added 3 commits December 4, 2024 16:03
@StanFromIreland

StanFromIreland commented Dec 4, 2024

Copy link
Copy Markdown
MemberAuthor

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?

Comment threadDoc/library/calendar.rst Outdated
@eendebakpt

Copy link
Copy Markdown
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.

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

Copy link
Copy Markdown
MemberAuthor

Added :no-index:.

@StanFromIreland

Copy link
Copy Markdown
MemberAuthor

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

Comment threadDoc/library/calendar.rst Outdated
Comment threadDoc/library/calendar.rst Outdated
Comment threadDoc/library/calendar.rst Outdated
Comment threadDoc/library/calendar.rst Outdated
Comment threadDoc/library/calendar.rst Outdated
StanFromIrelandand 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>
Comment threadDoc/library/calendar.rst Outdated
@erlend-aaslanderlend-aasland changed the title gh-108202: calendar: Document getfirstweekday and setfirstweekdaygh-108202: Document calendar.Calendar methods getfirstweekday and setfirstweekdayJan 6, 2025
@erlend-aasland

Copy link
Copy Markdown
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.

@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
Copy Markdown

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-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Jan 6, 2025
@bedevere-app

Copy link
Copy Markdown

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

@bedevere-appbedevere-appBot 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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants

@StanFromIreland@erlend-aasland@eendebakpt@ZeroIntensity