@@ -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
@@ -810,7 +810,7 @@ as internal buffering of data.
810
810
The return value is the amount of bytes copied. This could be less than the
811
811
amount requested.
812
812
813
- .. availability :: Linux kernel >= 4.5 or glibc >= 2.27.
813
+ .. availability :: Linux >= 4.5 with glibc >= 2.27.
814
814
815
815
.. versionadded :: 3.8
816
816
@@ -1150,7 +1150,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1150
1150
descriptors are :ref: `non-inheritable <fd_inheritance >`. For a (slightly) more
1151
1151
portable approach, use the :mod: `pty ` module.
1152
1152
1153
- .. availability :: some flavors of Unix.
1153
+ .. availability :: Unix.
1154
1154
1155
1155
.. versionchanged :: 3.4
1156
1156
The new file descriptors are now non-inheritable.
@@ -1176,7 +1176,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1176
1176
Return a pair of file descriptors ``(r, w) `` usable for reading and writing,
1177
1177
respectively.
1178
1178
1179
- .. availability :: some flavors of Unix.
1179
+ .. availability :: Unix.
1180
1180
1181
1181
.. versionadded :: 3.3
1182
1182
@@ -1255,9 +1255,9 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1255
1255
1256
1256
Combine the functionality of :func: `os.readv ` and :func: `os.pread `.
1257
1257
1258
- .. availability :: Linux 2.6.30 and newer , FreeBSD 6.0 and newer,
1259
- OpenBSD 2.7 and newer, AIX 7.1 and newer. Using flags requires
1260
- Linux 4.6 or newer .
1258
+ .. availability :: Linux >= 2.6.30, FreeBSD >= 6.0, OpenBSD >= 2.7, AIX >= 7.1.
1259
+
1260
+ Using flags requires Linux >= 4.6.
1261
1261
1262
1262
.. versionadded :: 3.7
1263
1263
@@ -1272,7 +1272,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1272
1272
If no bytes were read, it will return ``-1 `` and set errno to
1273
1273
:data: `errno.EAGAIN `.
1274
1274
1275
- .. availability :: Linux 4.14 and newer .
1275
+ .. availability :: Linux >= 4.14.
1276
1276
1277
1277
.. versionadded :: 3.7
1278
1278
@@ -1286,7 +1286,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1286
1286
Currently, on Linux, this feature is usable only on a file descriptor opened
1287
1287
using the :data: `O_DIRECT ` flag.
1288
1288
1289
- .. availability :: Linux 4.6 and newer .
1289
+ .. availability :: Linux >= 4.6.
1290
1290
1291
1291
.. versionadded :: 3.7
1292
1292
@@ -1325,9 +1325,9 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1325
1325
1326
1326
Combine the functionality of :func: `os.writev ` and :func: `os.pwrite `.
1327
1327
1328
- .. availability :: Linux 2.6.30 and newer , FreeBSD 6.0 and newer,
1329
- OpenBSD 2.7 and newer, AIX 7.1 and newer. Using flags requires
1330
- Linux 4.7 or newer .
1328
+ .. availability :: Linux >= 2.6.30, FreeBSD >= 6.0, OpenBSD >= 2.7, AIX >= 7.1.
1329
+
1330
+ Using flags requires Linux >= 4.6 .
1331
1331
1332
1332
.. versionadded :: 3.7
1333
1333
@@ -1337,7 +1337,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1337
1337
Provide a per-write equivalent of the :data: `O_DSYNC ` :func: `os.open ` flag.
1338
1338
This flag effect applies only to the data range written by the system call.
1339
1339
1340
- .. availability :: Linux 4.7 and newer .
1340
+ .. availability :: Linux >= 4.7.
1341
1341
1342
1342
.. versionadded :: 3.7
1343
1343
@@ -1347,7 +1347,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1347
1347
Provide a per-write equivalent of the :data: `O_SYNC ` :func: `os.open ` flag.
1348
1348
This flag effect applies only to the data range written by the system call.
1349
1349
1350
- .. availability :: Linux 4.7 and newer .
1350
+ .. availability :: Linux >= 4.7.
1351
1351
1352
1352
.. versionadded :: 3.7
1353
1353
@@ -1361,7 +1361,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1361
1361
appended to the end of the file. However, if the *offset * argument is
1362
1362
``-1 ``, the current file *offset * is updated.
1363
1363
1364
- .. availability :: Linux 4.16 and newer .
1364
+ .. availability :: Linux >= 4.16.
1365
1365
1366
1366
.. versionadded :: 3.10
1367
1367
@@ -1481,7 +1481,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
1481
1481
make sense to block because there are no writers connected to the write end
1482
1482
of the pipe.
1483
1483
1484
- .. availability :: Linux kernel >= 2.6.17 and glibc >= 2.5
1484
+ .. availability :: Linux >= 2.6.17 with glibc >= 2.5
1485
1485
1486
1486
.. versionadded :: 3.10
1487
1487
@@ -3320,7 +3320,7 @@ features:
3320
3320
the file descriptor, and as such multiple files can have the same name
3321
3321
without any side effects.
3322
3322
3323
- .. availability :: Linux 3.17 or newer with glibc 2.27 or newer .
3323
+ .. availability :: Linux >= 3.17 with glibc >= 2.27.
3324
3324
3325
3325
.. versionadded :: 3.8
3326
3326
@@ -3345,8 +3345,9 @@ features:
3345
3345
3346
3346
These flags can be passed to :func: `memfd_create `.
3347
3347
3348
- .. availability :: Linux 3.17 or newer with glibc 2.27 or newer. The
3349
- ``MFD_HUGE* `` flags are only available since Linux 4.14.
3348
+ .. availability :: Linux >= 3.17 with glibc >= 2.27
3349
+
3350
+ The ``MFD_HUGE* `` flags are only available since Linux 4.14.
3350
3351
3351
3352
.. versionadded :: 3.8
3352
3353
@@ -3398,7 +3399,7 @@ features:
3398
3399
finally:
3399
3400
os.close(fd)
3400
3401
3401
- .. availability :: Linux 2.6.27 or newer with glibc 2.8 or newer.
3402
+ .. availability :: Linux >= 2.6.27 with glibc >= 2.8
3402
3403
3403
3404
.. versionadded :: 3.10
3404
3405
@@ -3407,7 +3408,7 @@ features:
3407
3408
Read value from an :func: `eventfd ` file descriptor and return a 64 bit
3408
3409
unsigned int. The function does not verify that *fd * is an :func: `eventfd `.
3409
3410
3410
- .. availability :: See :func:`eventfd`
3411
+ .. availability :: Linux >= 2.6.27
3411
3412
3412
3413
.. versionadded :: 3.10
3413
3414
@@ -3416,15 +3417,15 @@ features:
3416
3417
Add value to an :func: `eventfd ` file descriptor. *value * must be a 64 bit
3417
3418
unsigned int. The function does not verify that *fd * is an :func: `eventfd `.
3418
3419
3419
- .. availability :: See :func:`eventfd`
3420
+ .. availability :: Linux >= 2.6.27
3420
3421
3421
3422
.. versionadded :: 3.10
3422
3423
3423
3424
.. data :: EFD_CLOEXEC
3424
3425
3425
3426
Set close-on-exec flag for new :func: `eventfd ` file descriptor.
3426
3427
3427
- .. availability :: See :func:`eventfd`
3428
+ .. availability :: Linux >= 2.6.27
3428
3429
3429
3430
.. versionadded :: 3.10
3430
3431
@@ -3433,7 +3434,7 @@ features:
3433
3434
Set :const: `O_NONBLOCK ` status flag for new :func: `eventfd ` file
3434
3435
descriptor.
3435
3436
3436
- .. availability :: See :func:`eventfd`
3437
+ .. availability :: Linux >= 2.6.27
3437
3438
3438
3439
.. versionadded :: 3.10
3439
3440
@@ -3442,7 +3443,7 @@ features:
3442
3443
Provide semaphore-like semantics for reads from a :func: `eventfd ` file
3443
3444
descriptor. On read the internal counter is decremented by one.
3444
3445
3445
- .. availability :: Linux 2.6.30 or newer with glibc 2.8 or newer.
3446
+ .. availability :: Linux >= 2.6.30
3446
3447
3447
3448
.. versionadded :: 3.10
3448
3449
@@ -3847,7 +3848,7 @@ written in Python, such as a mail server's external command delivery program.
3847
3848
Calling ``forkpty() `` in a subinterpreter is no longer supported
3848
3849
(:exc: `RuntimeError ` is raised).
3849
3850
3850
- .. availability :: some flavors of Unix.
3851
+ .. availability :: Unix.
3851
3852
3852
3853
3853
3854
.. function :: kill(pid, sig)
@@ -3904,7 +3905,7 @@ written in Python, such as a mail server's external command delivery program.
3904
3905
3905
3906
See the :manpage: `pidfd_open(2)` man page for more details.
3906
3907
3907
- .. availability :: Linux 5.3+
3908
+ .. availability :: Linux >= 5.3
3908
3909
.. versionadded :: 3.9
3909
3910
3910
3911
@@ -4054,7 +4055,9 @@ written in Python, such as a mail server's external command delivery program.
4054
4055
4055
4056
.. versionadded :: 3.8
4056
4057
4057
- .. availability :: See :func:`posix_spawn` documentation.
4058
+ .. availability :: POSIX
4059
+
4060
+ See :func: `posix_spawn ` documentation.
4058
4061
4059
4062
4060
4063
.. function :: register_at_fork(*, before=None, after_in_parent=None, \
@@ -4154,7 +4157,9 @@ written in Python, such as a mail server's external command delivery program.
4154
4157
4155
4158
.. audit-event :: os.spawn mode,path,args,env os.spawnl
4156
4159
4157
- .. availability :: Unix, Windows. :func:`spawnlp`, :func:`spawnlpe`, :func:`spawnvp`
4160
+ .. availability :: Unix, Windows.
4161
+
4162
+ :func: `spawnlp `, :func: `spawnlpe `, :func: `spawnvp `
4158
4163
and :func: `spawnvpe ` are not available on Windows. :func: `spawnle ` and
4159
4164
:func: `spawnve ` are not thread-safe on Windows; we advise you to use the
4160
4165
:mod: `subprocess ` module instead.
@@ -4358,7 +4363,7 @@ written in Python, such as a mail server's external command delivery program.
4358
4363
This is a Linux-specific *idtype * that indicates that *id * is a file
4359
4364
descriptor that refers to a process.
4360
4365
4361
- .. availability :: Linux 5.4+
4366
+ .. availability :: Linux >= 5.4
4362
4367
4363
4368
.. versionadded :: 3.9
4364
4369
@@ -4500,7 +4505,9 @@ written in Python, such as a mail server's external command delivery program.
4500
4505
This option causes child processes to be reported if they have been continued
4501
4506
from a job control stop since their status was last reported.
4502
4507
4503
- .. availability :: some Unix systems.
4508
+ .. availability :: Unix.
4509
+
4510
+ Some Unix systems.
4504
4511
4505
4512
4506
4513
.. data :: WUNTRACED
@@ -4906,7 +4913,7 @@ Random numbers
4906
4913
See also the `Linux getrandom() manual page
4907
4914
<http://man7.org/linux/man-pages/man2/getrandom.2.html> `_.
4908
4915
4909
- .. availability :: Linux 3.17 and newer .
4916
+ .. availability :: Linux >= 3.17.
4910
4917
4911
4918
.. versionadded :: 3.6
4912
4919
0 commit comments