Skip to content
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

Docs: the calendar module lacks documentation for several APIs #108202

Open
erlend-aasland opened this issue Aug 21, 2023 · 3 comments
Open

Docs: the calendar module lacks documentation for several APIs #108202

erlend-aasland opened this issue Aug 21, 2023 · 3 comments
Labels
docs Documentation in the Doc dir easy

Comments

@erlend-aasland
Copy link
Contributor

erlend-aasland commented Aug 21, 2023

@erlend-aasland erlend-aasland added the docs Documentation in the Doc dir label Aug 21, 2023
@hugovk hugovk changed the title Docs: the calendar module lacks documentation for several APIS Docs: the calendar module lacks documentation for several APIs Aug 21, 2023
@AA-Turner
Copy link
Member

AA-Turner commented Aug 21, 2023

(status as at 21c0844)

Defined in __all__ but not documented

Undocumented classes

  • different_locale (should not be documented, helper class)

Undocumented functions

  • prweek()
  • week()
  • format()
  • formatstring()

Undocumented methods

Calendar

  • Calendar.getfirstweekday()
  • Calendar.setfirstweekday()
  • Calendar.firstweekday

TextCalendar

HTMLCalendar

  • HTMLCalendar.formatday()
  • HTMLCalendar.formatweek()
  • HTMLCalendar.formatweekday()
  • HTMLCalendar.formatweekheader()
  • HTMLCalendar.formatmonthname()

Undocumented attributes

  • EPOCH (should not be documented, of no use)
  • mdays (should not be documented, of no use)

Undocumented miscellany

A

@AA-Turner
Copy link
Member

I think at the least we ought document IllegalMonthError and IllegalWeekdayError, I'll open a PR shortly.

A

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 25, 2023
(cherry picked from commit 1350987)

Co-authored-by: Adam Turner <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 25, 2023
(cherry picked from commit 1350987)

Co-authored-by: Adam Turner <[email protected]>
hugovk pushed a commit that referenced this issue Aug 25, 2023
Yhg1s pushed a commit that referenced this issue Aug 25, 2023
GH-108202: Document ``calendar`` exceptions (GH-108398)
(cherry picked from commit 1350987)

Co-authored-by: Adam Turner <[email protected]>
AA-Turner added a commit to AA-Turner/cpython that referenced this issue Aug 28, 2023
…ts (pythonGH-108492).

(cherry picked from commit 5d936b6)

Co-authored-by: Adam Turner <[email protected]>
Yhg1s pushed a commit that referenced this issue Aug 28, 2023
…-108492) (#108579)

[3.12] GH-108202: Combine documentation of ``calendar`` constants (GH-108492).
(cherry picked from commit 5d936b6)
hugovk added a commit that referenced this issue Sep 6, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 6, 2023
…onGH-109020)

(cherry picked from commit f0f96a9)

Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 6, 2023
…onGH-109020)

(cherry picked from commit f0f96a9)

Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
vstinner pushed a commit that referenced this issue Sep 7, 2023
…109020) (#109031)

GH-108202: Document ``calendar``'s command-line interface (GH-109020)
(cherry picked from commit f0f96a9)

Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Yhg1s pushed a commit that referenced this issue Sep 8, 2023
…109020) (#109030)

GH-108202: Document ``calendar``'s command-line interface (GH-109020)
(cherry picked from commit f0f96a9)

Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
@hugovk hugovk added the easy label Aug 15, 2024
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 easy
Projects
None yet
Development

No branches or pull requests

3 participants