@@ -301,7 +301,7 @@ process and user.
301
301
and ``'surrogateescape' `` error handler. Use :func: `os.getenvb ` if you
302
302
would like to use a different encoding.
303
303
304
- .. availability :: most flavors of Unix, Windows.
304
+ .. availability :: Unix, Windows.
305
305
306
306
307
307
.. function :: getenvb(key, default=None)
@@ -316,7 +316,7 @@ process and user.
316
316
:func: `getenvb ` is only available if :data: `supports_bytes_environ `
317
317
is ``True ``.
318
318
319
- .. availability :: most flavors of Unix.
319
+ .. availability :: Unix.
320
320
321
321
.. versionadded :: 3.2
322
322
@@ -706,7 +706,7 @@ process and user.
706
706
:func: `socket.gethostname ` or even
707
707
``socket.gethostbyaddr(socket.gethostname()) ``.
708
708
709
- .. availability :: recent flavors of Unix.
709
+ .. availability :: Unix.
710
710
711
711
.. versionchanged :: 3.3
712
712
Return type changed from a tuple to a tuple-like object
@@ -824,7 +824,7 @@ as internal buffering of data.
824
824
It will always copy no bytes and return 0 as if the file was empty
825
825
because of a known Linux kernel issue.
826
826
827
- .. availability :: Linux kernel >= 4.5 or glibc >= 2.27.
827
+ .. availability :: Linux >= 4.5 with glibc >= 2.27.
828
828
829
829
.. versionadded :: 3.8
830
830
@@ -1164,7 +1164,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1164
1164
descriptors are :ref: `non-inheritable <fd_inheritance >`. For a (slightly) more
1165
1165
portable approach, use the :mod: `pty ` module.
1166
1166
1167
- .. availability :: some flavors of Unix.
1167
+ .. availability :: Unix.
1168
1168
1169
1169
.. versionchanged :: 3.4
1170
1170
The new file descriptors are now non-inheritable.
@@ -1190,7 +1190,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1190
1190
Return a pair of file descriptors ``(r, w) `` usable for reading and writing,
1191
1191
respectively.
1192
1192
1193
- .. availability :: some flavors of Unix.
1193
+ .. availability :: Unix.
1194
1194
1195
1195
.. versionadded :: 3.3
1196
1196
@@ -1269,9 +1269,9 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1269
1269
1270
1270
Combine the functionality of :func: `os.readv ` and :func: `os.pread `.
1271
1271
1272
- .. availability :: Linux 2.6.30 and newer , FreeBSD 6.0 and newer,
1273
- OpenBSD 2.7 and newer, AIX 7.1 and newer. Using flags requires
1274
- Linux 4.6 or newer .
1272
+ .. availability :: Linux >= 2.6.30, FreeBSD >= 6.0, OpenBSD >= 2.7, AIX >= 7.1.
1273
+
1274
+ Using flags requires Linux >= 4.6.
1275
1275
1276
1276
.. versionadded :: 3.7
1277
1277
@@ -1286,7 +1286,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1286
1286
If no bytes were read, it will return ``-1 `` and set errno to
1287
1287
:data: `errno.EAGAIN `.
1288
1288
1289
- .. availability :: Linux 4.14 and newer .
1289
+ .. availability :: Linux >= 4.14.
1290
1290
1291
1291
.. versionadded :: 3.7
1292
1292
@@ -1300,7 +1300,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1300
1300
Currently, on Linux, this feature is usable only on a file descriptor opened
1301
1301
using the :data: `O_DIRECT ` flag.
1302
1302
1303
- .. availability :: Linux 4.6 and newer .
1303
+ .. availability :: Linux >= 4.6.
1304
1304
1305
1305
.. versionadded :: 3.7
1306
1306
@@ -1339,9 +1339,9 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1339
1339
1340
1340
Combine the functionality of :func: `os.writev ` and :func: `os.pwrite `.
1341
1341
1342
- .. availability :: Linux 2.6.30 and newer , FreeBSD 6.0 and newer,
1343
- OpenBSD 2.7 and newer, AIX 7.1 and newer. Using flags requires
1344
- Linux 4.7 or newer .
1342
+ .. availability :: Linux >= 2.6.30, FreeBSD >= 6.0, OpenBSD >= 2.7, AIX >= 7.1.
1343
+
1344
+ Using flags requires Linux >= 4.6 .
1345
1345
1346
1346
.. versionadded :: 3.7
1347
1347
@@ -1351,7 +1351,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1351
1351
Provide a per-write equivalent of the :data: `O_DSYNC ` :func: `os.open ` flag.
1352
1352
This flag effect applies only to the data range written by the system call.
1353
1353
1354
- .. availability :: Linux 4.7 and newer .
1354
+ .. availability :: Linux >= 4.7.
1355
1355
1356
1356
.. versionadded :: 3.7
1357
1357
@@ -1361,7 +1361,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1361
1361
Provide a per-write equivalent of the :data: `O_SYNC ` :func: `os.open ` flag.
1362
1362
This flag effect applies only to the data range written by the system call.
1363
1363
1364
- .. availability :: Linux 4.7 and newer .
1364
+ .. availability :: Linux >= 4.7.
1365
1365
1366
1366
.. versionadded :: 3.7
1367
1367
@@ -1375,7 +1375,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1375
1375
appended to the end of the file. However, if the *offset * argument is
1376
1376
``-1 ``, the current file *offset * is updated.
1377
1377
1378
- .. availability :: Linux 4.16 and newer .
1378
+ .. availability :: Linux >= 4.16.
1379
1379
1380
1380
.. versionadded :: 3.10
1381
1381
@@ -1495,7 +1495,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1495
1495
make sense to block because there are no writers connected to the write end
1496
1496
of the pipe.
1497
1497
1498
- .. availability :: Linux kernel >= 2.6.17 and glibc >= 2.5
1498
+ .. availability :: Linux >= 2.6.17 with glibc >= 2.5
1499
1499
1500
1500
.. versionadded :: 3.10
1501
1501
@@ -3334,7 +3334,7 @@ features:
3334
3334
the file descriptor, and as such multiple files can have the same name
3335
3335
without any side effects.
3336
3336
3337
- .. availability :: Linux 3.17 or newer with glibc 2.27 or newer .
3337
+ .. availability :: Linux >= 3.17 with glibc >= 2.27.
3338
3338
3339
3339
.. versionadded :: 3.8
3340
3340
@@ -3359,8 +3359,9 @@ features:
3359
3359
3360
3360
These flags can be passed to :func: `memfd_create `.
3361
3361
3362
- .. availability :: Linux 3.17 or newer with glibc 2.27 or newer. The
3363
- ``MFD_HUGE* `` flags are only available since Linux 4.14.
3362
+ .. availability :: Linux >= 3.17 with glibc >= 2.27
3363
+
3364
+ The ``MFD_HUGE* `` flags are only available since Linux 4.14.
3364
3365
3365
3366
.. versionadded :: 3.8
3366
3367
@@ -3412,7 +3413,7 @@ features:
3412
3413
finally:
3413
3414
os.close(fd)
3414
3415
3415
- .. availability :: Linux 2.6.27 or newer with glibc 2.8 or newer.
3416
+ .. availability :: Linux >= 2.6.27 with glibc >= 2.8
3416
3417
3417
3418
.. versionadded :: 3.10
3418
3419
@@ -3421,7 +3422,7 @@ features:
3421
3422
Read value from an :func: `eventfd ` file descriptor and return a 64 bit
3422
3423
unsigned int. The function does not verify that *fd * is an :func: `eventfd `.
3423
3424
3424
- .. availability :: See :func:`eventfd`
3425
+ .. availability :: Linux >= 2.6.27
3425
3426
3426
3427
.. versionadded :: 3.10
3427
3428
@@ -3430,15 +3431,15 @@ features:
3430
3431
Add value to an :func: `eventfd ` file descriptor. *value * must be a 64 bit
3431
3432
unsigned int. The function does not verify that *fd * is an :func: `eventfd `.
3432
3433
3433
- .. availability :: See :func:`eventfd`
3434
+ .. availability :: Linux >= 2.6.27
3434
3435
3435
3436
.. versionadded :: 3.10
3436
3437
3437
3438
.. data :: EFD_CLOEXEC
3438
3439
3439
3440
Set close-on-exec flag for new :func: `eventfd ` file descriptor.
3440
3441
3441
- .. availability :: See :func:`eventfd`
3442
+ .. availability :: Linux >= 2.6.27
3442
3443
3443
3444
.. versionadded :: 3.10
3444
3445
@@ -3447,7 +3448,7 @@ features:
3447
3448
Set :const: `O_NONBLOCK ` status flag for new :func: `eventfd ` file
3448
3449
descriptor.
3449
3450
3450
- .. availability :: See :func:`eventfd`
3451
+ .. availability :: Linux >= 2.6.27
3451
3452
3452
3453
.. versionadded :: 3.10
3453
3454
@@ -3456,7 +3457,7 @@ features:
3456
3457
Provide semaphore-like semantics for reads from a :func: `eventfd ` file
3457
3458
descriptor. On read the internal counter is decremented by one.
3458
3459
3459
- .. availability :: Linux 2.6.30 or newer with glibc 2.8 or newer.
3460
+ .. availability :: Linux >= 2.6.30
3460
3461
3461
3462
.. versionadded :: 3.10
3462
3463
@@ -3861,7 +3862,7 @@ written in Python, such as a mail server's external command delivery program.
3861
3862
Calling ``forkpty() `` in a subinterpreter is no longer supported
3862
3863
(:exc: `RuntimeError ` is raised).
3863
3864
3864
- .. availability :: some flavors of Unix.
3865
+ .. availability :: Unix.
3865
3866
3866
3867
3867
3868
.. function :: kill(pid, sig)
@@ -3917,7 +3918,7 @@ written in Python, such as a mail server's external command delivery program.
3917
3918
3918
3919
See the :manpage: `pidfd_open(2)` man page for more details.
3919
3920
3920
- .. availability :: Linux 5.3+
3921
+ .. availability :: Linux >= 5.3
3921
3922
.. versionadded :: 3.9
3922
3923
3923
3924
.. data :: PIDFD_NONBLOCK
@@ -3927,7 +3928,7 @@ written in Python, such as a mail server's external command delivery program.
3927
3928
then an attempt to wait on the file descriptor using :manpage: `waitid(2)`
3928
3929
will immediately return the error :data: `~errno.EAGAIN ` rather than blocking.
3929
3930
3930
- .. availability :: Linux 5.10+
3931
+ .. availability :: Linux >= 5.10
3931
3932
.. versionadded :: 3.12
3932
3933
3933
3934
@@ -4077,7 +4078,9 @@ written in Python, such as a mail server's external command delivery program.
4077
4078
4078
4079
.. versionadded :: 3.8
4079
4080
4080
- .. availability :: See :func:`posix_spawn` documentation.
4081
+ .. availability :: POSIX
4082
+
4083
+ See :func: `posix_spawn ` documentation.
4081
4084
4082
4085
4083
4086
.. function :: register_at_fork(*, before=None, after_in_parent=None, \
@@ -4177,7 +4180,9 @@ written in Python, such as a mail server's external command delivery program.
4177
4180
4178
4181
.. audit-event :: os.spawn mode,path,args,env os.spawnl
4179
4182
4180
- .. availability :: Unix, Windows. :func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp`
4183
+ .. availability :: Unix, Windows.
4184
+
4185
+ :func: `spawnlp `, :func: `spawnlpe `, :func: `spawnvp `
4181
4186
and :func: `spawnvpe ` are not available on Windows. :func: `spawnle ` and
4182
4187
:func: `spawnve ` are not thread-safe on Windows; we advise you to use the
4183
4188
:mod: `subprocess ` module instead.
@@ -4381,7 +4386,7 @@ written in Python, such as a mail server's external command delivery program.
4381
4386
This is a Linux-specific *idtype * that indicates that *id * is a file
4382
4387
descriptor that refers to a process.
4383
4388
4384
- .. availability :: Linux 5.4+
4389
+ .. availability :: Linux >= 5.4
4385
4390
4386
4391
.. versionadded :: 3.9
4387
4392
@@ -4523,7 +4528,9 @@ written in Python, such as a mail server's external command delivery program.
4523
4528
This option causes child processes to be reported if they have been continued
4524
4529
from a job control stop since their status was last reported.
4525
4530
4526
- .. availability :: some Unix systems.
4531
+ .. availability :: Unix.
4532
+
4533
+ Some Unix systems.
4527
4534
4528
4535
4529
4536
.. data :: WUNTRACED
@@ -4929,7 +4936,7 @@ Random numbers
4929
4936
See also the `Linux getrandom() manual page
4930
4937
<http://man7.org/linux/man-pages/man2/getrandom.2.html> `_.
4931
4938
4932
- .. availability :: Linux 3.17 and newer .
4939
+ .. availability :: Linux >= 3.17.
4933
4940
4934
4941
.. versionadded :: 3.6
4935
4942
0 commit comments