summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-09 11:02:31 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-09 11:02:31 (GMT)
commit0d196edc3779f75bf1761159eda239e3a1d6c231 (patch)
treeda611d5bc11b086a3a6d618f46b6b7de22e4f1f3 /Doc/glossary.rst
parent0b68a2d67538703b13d4a824acf736f8ef103dad (diff)
downloadcpython-0d196edc3779f75bf1761159eda239e3a1d6c231.zip
cpython-0d196edc3779f75bf1761159eda239e3a1d6c231.tar.gz
cpython-0d196edc3779f75bf1761159eda239e3a1d6c231.tar.bz2
Issue #19190: Improve cross-references in builtin types and functions documentation.
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index a4ef151..b4465ac 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -547,9 +547,9 @@ Glossary
dictionaries. There are the local, global and built-in namespaces as well
as nested namespaces in objects (in methods). Namespaces support
modularity by preventing naming conflicts. For instance, the functions
- :func:`builtins.open` and :func:`os.open` are distinguished by their
- namespaces. Namespaces also aid readability and maintainability by making
- it clear which module implements a function. For instance, writing
+ :func:`builtins.open <.open>` and :func:`os.open` are distinguished by
+ their namespaces. Namespaces also aid readability and maintainability by
+ making it clear which module implements a function. For instance, writing
:func:`random.seed` or :func:`itertools.islice` makes it clear that those
functions are implemented by the :mod:`random` and :mod:`itertools`
modules, respectively.
@@ -574,8 +574,8 @@ Glossary
new-style class
Old name for the flavor of classes now used for all class objects. In
earlier Python versions, only new-style classes could use Python's newer,
- versatile features like :attr:`__slots__`, descriptors, properties,
- :meth:`__getattribute__`, class methods, and static methods.
+ versatile features like :attr:`~object.__slots__`, descriptors,
+ properties, :meth:`__getattribute__`, class methods, and static methods.
object
Any data with state (attributes or value) and defined behavior
@@ -790,7 +790,8 @@ Glossary
type
The type of a Python object determines what kind of object it is; every
object has a type. An object's type is accessible as its
- :attr:`__class__` attribute or can be retrieved with ``type(obj)``.
+ :attr:`~instance.__class__` attribute or can be retrieved with
+ ``type(obj)``.
universal newlines
A manner of interpreting text streams in which all of the following are