]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-99030: Added documentation links for types and exceptions (GH-123857) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Oct 2024 00:43:26 +0000 (02:43 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2024 00:43:26 +0000 (00:43 +0000)
gh-99030: Added documentation links for types and exceptions (GH-123857)

* Added documentation links for types and exceptions

* Shortened description sentences

* Change content

* Change documentation

* Move seealso

* Add a spaces
(cherry picked from commit 9256be7ff0ab035cfd262127d893c9bc88b3c84c)

Co-authored-by: RUANG (Roy James) <longjinyii@outlook.com>
Doc/library/builtins.rst

index 644344e7fef29a63a2338cf08488bc5f6eac3fdc..c4979db52d2aedb5398e989a51abf816b87a7b8a 100644 (file)
@@ -7,10 +7,7 @@
 --------------
 
 This module provides direct access to all 'built-in' identifiers of Python; for
-example, ``builtins.open`` is the full name for the built-in function
-:func:`open`.  See :ref:`built-in-funcs` and :ref:`built-in-consts` for
-documentation.
-
+example, ``builtins.open`` is the full name for the built-in function :func:`open`.
 
 This module is not normally accessed explicitly by most applications, but can be
 useful in modules that provide objects with the same name as a built-in value,
@@ -40,3 +37,10 @@ available as part of their globals.  The value of ``__builtins__`` is normally
 either this module or the value of this module's :attr:`~object.__dict__` attribute.
 Since this is an implementation detail, it may not be used by alternate
 implementations of Python.
+
+.. seealso::
+
+   * :ref:`built-in-consts`
+   * :ref:`bltin-exceptions`
+   * :ref:`built-in-funcs`
+   * :ref:`bltin-types`