summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-09 11:03:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-09 11:03:24 (GMT)
commit0d85b5c68d663d0c735d2618f11fb3dbbd1f2cdc (patch)
tree05234aee9190e952b9232d2dd5266e085836f05f /Doc/glossary.rst
parentd51f42372b6992c73f93aaa38c137eef063dd307 (diff)
parent0d196edc3779f75bf1761159eda239e3a1d6c231 (diff)
downloadcpython-0d85b5c68d663d0c735d2618f11fb3dbbd1f2cdc.zip
cpython-0d85b5c68d663d0c735d2618f11fb3dbbd1f2cdc.tar.gz
cpython-0d85b5c68d663d0c735d2618f11fb3dbbd1f2cdc.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 5316b01..073d5ab 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -556,9 +556,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.
@@ -583,8 +583,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
@@ -803,7 +803,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