@@ -4577,16 +4577,17 @@ Naturally, they are all only available on Linux.
45774577 - :const: `time.CLOCK_BOOTTIME ` (Since Linux 3.15 for timerfd_create)
45784578
45794579 If *clockid * is :const: `time.CLOCK_REALTIME `, a settable system-wide
4580- real-time clock is used. If system clock is changed, timer setting need
4581- to be updated. To cancel timer when system clock is changed, see
4580+ real-time clock is used. If the system clock is changed, the timer setting
4581+ needs to be updated. To cancel the timer when the system clock is changed, see
45824582 :const: `TFD_TIMER_CANCEL_ON_SET `.
45834583
45844584 If *clockid * is :const: `time.CLOCK_MONOTONIC `, a non-settable monotonically
45854585 increasing clock is used. Even if the system clock is changed, the timer
45864586 setting will not be affected.
45874587
4588- If *clockid * is :const: `time.CLOCK_BOOTTIME `, same as :const: `time.CLOCK_MONOTONIC `
4589- except it includes any time that the system is suspended.
4588+ If *clockid * is :const: `time.CLOCK_BOOTTIME `, it is the same as
4589+ :const: `time.CLOCK_MONOTONIC ` except it includes any time that the system
4590+ is suspended.
45904591
45914592 The file descriptor's behaviour can be modified by specifying a *flags * value.
45924593 Any of the following variables may be used, combined using bitwise OR
@@ -4597,8 +4598,8 @@ Naturally, they are all only available on Linux.
45974598
45984599 If :const: `TFD_NONBLOCK ` is not set as a flag, :func: `read ` blocks until
45994600 the timer expires. If it is set as a flag, :func: `read ` doesn't block, but
4600- If there hasn't been an expiration since the last call to read,
4601- :func: `read ` raises :class: `OSError ` with ``errno `` is set to
4601+ if there hasn't been an expiration since the last call to read,
4602+ :func: `read ` raises :class: `OSError ` with ``errno `` set to
46024603 :const: `errno.EAGAIN `.
46034604
46044605 :const: `TFD_CLOEXEC ` is always set by Python automatically.
@@ -4613,7 +4614,7 @@ Naturally, they are all only available on Linux.
46134614 .. versionadded :: 3.13
46144615
46154616
4616- .. function :: timerfd_settime(fd, /, *, flags=flags , initial=0.0, interval=0.0)
4617+ .. function :: timerfd_settime(fd, /, *, flags=0 , initial=0.0, interval=0.0)
46174618
46184619 Alter a timer file descriptor's internal timer.
46194620 This function operates the same interval timer as :func: `timerfd_settime_ns `.
@@ -4628,12 +4629,11 @@ Naturally, they are all only available on Linux.
46284629 - :const: `TFD_TIMER_CANCEL_ON_SET `
46294630
46304631 The timer is disabled by setting *initial * to zero (``0 ``).
4631- If *initial * is equal to or greater than zero, the timer is enabled.
4632+ If *initial * is greater than zero, the timer is enabled.
46324633 If *initial * is less than zero, it raises an :class: `OSError ` exception
4633- with ``errno `` set to :const: `errno.EINVAL `
4634+ with ``errno `` set to :const: `errno.EINVAL `.
46344635
46354636 By default the timer will fire when *initial * seconds have elapsed.
4636- (If *initial * is zero, timer will fire immediately.)
46374637
46384638 However, if the :const: `TFD_TIMER_ABSTIME ` flag is set,
46394639 the timer will fire when the timer's clock
@@ -4644,13 +4644,13 @@ Naturally, they are all only available on Linux.
46444644 If *interval * is greater than zero, the timer fires every time *interval *
46454645 seconds have elapsed since the previous expiration.
46464646 If *interval * is less than zero, it raises :class: `OSError ` with ``errno ``
4647- set to :const: `errno.EINVAL `
4647+ set to :const: `errno.EINVAL `.
46484648
46494649 If the :const: `TFD_TIMER_CANCEL_ON_SET ` flag is set along with
46504650 :const: `TFD_TIMER_ABSTIME ` and the clock for this timer is
46514651 :const: `time.CLOCK_REALTIME `, the timer is marked as cancelable if the
46524652 real-time clock is changed discontinuously. Reading the descriptor is
4653- aborted with the error ECANCELED.
4653+ aborted with the error :const: ` errno. ECANCELED` .
46544654
46554655 Linux manages system clock as UTC. A daylight-savings time transition is
46564656 done by changing time offset only and doesn't cause discontinuous system
0 commit comments