Skip to content

Commit fa60354

Browse files
authored
gh-101100: Resolve some os sphinx reference warnings (#139636)
1 parent d9cb191 commit fa60354

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Doc/library/os.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)