Skip to content

Fix docstring error in IllegalMonthError and remove dead URL in mro.rst#148924

Closed
Jah-yee wants to merge 1 commit intopython:mainfrom
Jah-yee:fix/doc-typo-errors
Closed

Fix docstring error in IllegalMonthError and remove dead URL in mro.rst#148924
Jah-yee wants to merge 1 commit intopython:mainfrom
Jah-yee:fix/doc-typo-errors

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Apr 23, 2026

Good day

This PR fixes two documentation issues in python/cpython:

  1. IllegalMonthError docstring (calendar.IllegalMonthError docs omit IndexError base class #148663): The docstring incorrectly mentions IndexError but the code raises ValueError. Updated to reflect the actual exception type.

  2. Dead URL in mro.rst (A Dead URL in mro.rst doc #148909): Removed a dead URL reference from the mro documentation.

Thank you for your work on this project. I hope this small fix is helpful. Please let me know if there's anything to adjust.

Warmly, RoomWithRoof


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

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented Apr 23, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@StanFromIreland
Copy link
Copy Markdown
Member

IllegalMonthError docstring

The documentation was fixed instead in 435be06, please revert your changes.

Comment thread Doc/howto/mro.rst
https://doi.org/10.1145/236337.236343
.. [#] Guido van Rossum's essay, *Unifying types and classes in Python 2.2*:
https://web.archive.org/web/20140210194412/http://www.python.org/download/releases/2.2.2/descrintro
Copy link
Copy Markdown
Contributor

@ByteFlowing1337 ByteFlowing1337 Apr 23, 2026

Choose a reason for hiding this comment

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

Isn’t this URL valid and can be opened? The dead URL mentioned in the issue #148909 seems just because that website does not support TLS, but we can visit it via http.

@StanFromIreland
Copy link
Copy Markdown
Member

I'm sorry but I have to close, neither of the changes are correct. Furthermore, please don't combine two issues into one PR in the future. I suggest you read the devguide, it contains a lot of helpful information on contributing: https://devguide.python.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants