@@ -4139,16 +4139,17 @@ Naturally, they are all only available on Linux.
41394139 - :const: `time.CLOCK_BOOTTIME ` (Since Linux 3.15 for timerfd_create)
41404140
41414141 If *clockid * is :const: `time.CLOCK_REALTIME `, a settable system-wide
4142- real-time clock is used. If system clock is changed, timer setting need
4143- to be updated. To cancel timer when system clock is changed, see
4142+ real-time clock is used. If the system clock is changed, the timer setting
4143+ needs to be updated. To cancel the timer when the system clock is changed, see
41444144 :const: `TFD_TIMER_CANCEL_ON_SET `.
41454145
41464146 If *clockid * is :const: `time.CLOCK_MONOTONIC `, a non-settable monotonically
41474147 increasing clock is used. Even if the system clock is changed, the timer
41484148 setting will not be affected.
41494149
4150- If *clockid * is :const: `time.CLOCK_BOOTTIME `, same as :const: `time.CLOCK_MONOTONIC `
4151- except it includes any time that the system is suspended.
4150+ If *clockid * is :const: `time.CLOCK_BOOTTIME `, it is the same as
4151+ :const: `time.CLOCK_MONOTONIC ` except it includes any time that the system
4152+ is suspended.
41524153
41534154 The file descriptor's behaviour can be modified by specifying a *flags * value.
41544155 Any of the following variables may be used, combined using bitwise OR
@@ -4159,8 +4160,8 @@ Naturally, they are all only available on Linux.
41594160
41604161 If :const: `TFD_NONBLOCK ` is not set as a flag, :func: `read ` blocks until
41614162 the timer expires. If it is set as a flag, :func: `read ` doesn't block, but
4162- If there hasn't been an expiration since the last call to read,
4163- :func: `read ` raises :class: `OSError ` with ``errno `` is set to
4163+ if there hasn't been an expiration since the last call to read,
4164+ :func: `read ` raises :class: `OSError ` with ``errno `` set to
41644165 :const: `errno.EAGAIN `.
41654166
41664167 :const: `TFD_CLOEXEC ` is always set by Python automatically.
@@ -4175,7 +4176,7 @@ Naturally, they are all only available on Linux.
41754176 .. versionadded :: 3.13
41764177
41774178
4178- .. function :: timerfd_settime(fd, /, *, flags=flags , initial=0.0, interval=0.0)
4179+ .. function :: timerfd_settime(fd, /, *, flags=0 , initial=0.0, interval=0.0)
41794180
41804181 Alter a timer file descriptor's internal timer.
41814182 This function operates the same interval timer as :func: `timerfd_settime_ns `.
@@ -4190,12 +4191,11 @@ Naturally, they are all only available on Linux.
41904191 - :const: `TFD_TIMER_CANCEL_ON_SET `
41914192
41924193 The timer is disabled by setting *initial * to zero (``0 ``).
4193- If *initial * is equal to or greater than zero, the timer is enabled.
4194+ If *initial * is greater than zero, the timer is enabled.
41944195 If *initial * is less than zero, it raises an :class: `OSError ` exception
4195- with ``errno `` set to :const: `errno.EINVAL `
4196+ with ``errno `` set to :const: `errno.EINVAL `.
41964197
41974198 By default the timer will fire when *initial * seconds have elapsed.
4198- (If *initial * is zero, timer will fire immediately.)
41994199
42004200 However, if the :const: `TFD_TIMER_ABSTIME ` flag is set,
42014201 the timer will fire when the timer's clock
@@ -4206,13 +4206,13 @@ Naturally, they are all only available on Linux.
42064206 If *interval * is greater than zero, the timer fires every time *interval *
42074207 seconds have elapsed since the previous expiration.
42084208 If *interval * is less than zero, it raises :class: `OSError ` with ``errno ``
4209- set to :const: `errno.EINVAL `
4209+ set to :const: `errno.EINVAL `.
42104210
42114211 If the :const: `TFD_TIMER_CANCEL_ON_SET ` flag is set along with
42124212 :const: `TFD_TIMER_ABSTIME ` and the clock for this timer is
42134213 :const: `time.CLOCK_REALTIME `, the timer is marked as cancelable if the
42144214 real-time clock is changed discontinuously. Reading the descriptor is
4215- aborted with the error ECANCELED.
4215+ aborted with the error :const: ` errno. ECANCELED` .
42164216
42174217 Linux manages system clock as UTC. A daylight-savings time transition is
42184218 done by changing time offset only and doesn't cause discontinuous system
0 commit comments