@@ -216,8 +216,8 @@ process and user.
216216
217217 You can delete items in this mapping to unset environment variables.
218218 :func: `unsetenv ` will be called automatically when an item is deleted from
219- :data: `os.environ `, and when one of the :meth: `pop ` or :meth: ` clear ` methods is
220- called.
219+ :data: `os.environ `, and when one of the :meth: `~dict. pop ` or
220+ :meth: ` ~dict.clear ` methods is called.
221221
222222 .. seealso ::
223223
@@ -430,8 +430,8 @@ process and user.
430430 associated with the effective user id of the process; the group access
431431 list may change over the lifetime of the process, it is not affected by
432432 calls to :func: `setgroups `, and its length is not limited to 16. The
433- deployment target value, :const: ` MACOSX_DEPLOYMENT_TARGET `, can be
434- obtained with :func: `sysconfig.get_config_var `.
433+ deployment target value can be obtained with
434+ :func: `sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') <sysconfig.get_config_var> `.
435435
436436
437437.. function :: getlogin()
@@ -2606,10 +2606,10 @@ features:
26062606
26072607 Create a filesystem node (file, device special file or named pipe) named
26082608 *path *. *mode * specifies both the permissions to use and the type of node
2609- to be created, being combined (bitwise OR) with one of `` stat.S_IFREG ` `,
2610- `` stat.S_IFCHR ``, `` stat.S_IFBLK `` , and `` stat.S_IFIFO `` (those constants are
2611- available in :mod : `stat `). For `` stat. S_IFCHR `` and `` stat.S_IFBLK ``,
2612- * device * defines the newly created device special file (probably using
2609+ to be created, being combined (bitwise OR) with one of :const: ` stat.S_IFREG `,
2610+ :const: ` stat.S_IFCHR `, :const: ` stat.S_IFBLK `, and :const: ` stat.S_IFIFO `.
2611+ For :const : `stat. S_IFCHR ` and :const: ` stat.S_IFBLK `, * device * defines the
2612+ newly created device special file (probably using
26132613 :func: `os.makedev `), otherwise it is ignored.
26142614
26152615 This function can also support :ref: `paths relative to directory descriptors
@@ -2627,13 +2627,13 @@ features:
26272627.. function :: major(device, /)
26282628
26292629 Extract the device major number from a raw device number (usually the
2630- :attr: `st_dev ` or :attr: `st_rdev ` field from :c:struct: `stat `).
2630+ :attr: `~stat_result. st_dev ` or :attr: `~stat_result. st_rdev ` field from :c:struct: `stat `).
26312631
26322632
26332633.. function :: minor(device, /)
26342634
26352635 Extract the device minor number from a raw device number (usually the
2636- :attr: `st_dev ` or :attr: `st_rdev ` field from :c:struct: `stat `).
2636+ :attr: `~stat_result. st_dev ` or :attr: `~stat_result. st_rdev ` field from :c:struct: `stat `).
26372637
26382638
26392639.. function :: makedev(major, minor, /)
@@ -3364,8 +3364,8 @@ features:
33643364
33653365 .. versionchanged :: 3.8
33663366 On Windows, the :attr: `st_mode ` member now identifies special
3367- files as :const: `S_IFCHR `, :const: `S_IFIFO ` or :const: ` S_IFBLK `
3368- as appropriate.
3367+ files as :const: `~stat. S_IFCHR `, :const: `~stat. S_IFIFO ` or
3368+ :const: ` ~stat.S_IFBLK ` as appropriate.
33693369
33703370 .. versionchanged :: 3.12
33713371 On Windows, :attr: `st_ctime ` is deprecated. Eventually, it will
@@ -4285,10 +4285,10 @@ to be ignored.
42854285
42864286.. function :: abort()
42874287
4288- Generate a :const: `SIGABRT ` signal to the current process. On Unix, the default
4288+ Generate a :const: `~signal. SIGABRT ` signal to the current process. On Unix, the default
42894289 behavior is to produce a core dump; on Windows, the process immediately returns
42904290 an exit code of ``3 ``. Be aware that calling this function will not call the
4291- Python signal handler registered for :const: `SIGABRT ` with
4291+ Python signal handler registered for :const: `~signal. SIGABRT ` with
42924292 :func: `signal.signal `.
42934293
42944294
@@ -4592,6 +4592,8 @@ written in Python, such as a mail server's external command delivery program.
45924592 master end of the pseudo-terminal. For a more portable approach, use the
45934593 :mod: `pty ` module. If an error occurs :exc: `OSError ` is raised.
45944594
4595+ The returned file descriptor *fd * is :ref: `non-inheritable <fd_inheritance >`.
4596+
45954597 .. audit-event :: os.forkpty "" os.forkpty
45964598
45974599 .. warning ::
@@ -4608,6 +4610,9 @@ written in Python, such as a mail server's external command delivery program.
46084610 threads, this now raises a :exc: `DeprecationWarning `. See the
46094611 longer explanation on :func: `os.fork `.
46104612
4613+ .. versionchanged :: next
4614+ The returned file descriptor is now made non-inheritable.
4615+
46114616 .. availability :: Unix, not WASI, not Android, not iOS.
46124617
46134618
0 commit comments