Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Doc/library/calendar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,11 @@ The :mod:`!calendar` module defines the following exceptions:

.. exception:: IllegalMonthError(month)

A subclass of :exc:`ValueError`,
A subclass of both :exc:`ValueError` and :exc:`IndexError`,
raised when the given month number is outside of the range 1-12 (inclusive).
The :exc:`IndexError` base class is preserved for backwards compatibility
with code that caught :exc:`IndexError` for bad month numbers prior to
Python 3.13.

.. attribute:: month

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Document that :class:`calendar.IllegalMonthError` inherits from both
:exc:`ValueError` and :exc:`IndexError`, preserving :exc:`IndexError` for
backwards compatibility with code that caught it for bad month numbers prior
to Python 3.13.
###########################################################################
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Clarify the documentation for :func:`signal.pause` to explain that it only
returns when a signal with an installed handler is delivered, not when an
ignored signal arrives.
###########################################################################
6 changes: 5 additions & 1 deletion Modules/clinic/signalmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Modules/signalmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,11 @@ signal_alarm_impl(PyObject *module, int seconds)
/*[clinic input]
signal.pause
Wait until a signal arrives.
Wait until a signal with an installed handler is delivered.
Cause the process to sleep until a signal is received that either
terminates it or causes it to call a signal-catching function. If the
signal is being ignored, pause() is not interrupted.
[clinic start generated code]*/

static PyObject *
Expand Down
Loading