@@ -407,7 +407,7 @@ \section{The standard type hierarchy\label{types}}
407407dictionary entry.
408408
409409Dictionaries are mutable; they can be created by the
410- \code {\{ ...\} } notation (see section \ref {dict }, `` Dictionary
410+ \code {\{ ...\} } notation (see section~ \ref {dict }, `` Dictionary
411411Displays'' ).
412412
413413The extension modules \module {dbm}\refstmodindex {dbm},
@@ -418,7 +418,7 @@ \section{The standard type hierarchy\label{types}}
418418
419419\item [Callable types]
420420These\obindex {callable} are the types to which the function call
421- operation (see section \ref {calls }, `` Calls'' ) can be applied:
421+ operation (see section~ \ref {calls }, `` Calls'' ) can be applied:
422422\indexii {function}{call}
423423\index {invocation}
424424\indexii {function}{argument}
@@ -427,7 +427,7 @@ \section{The standard type hierarchy\label{types}}
427427
428428\item [User-defined functions]
429429A user-defined function object is created by a function definition
430- (see section \ref {function }, `` Function definitions'' ). It should be
430+ (see section~ \ref {function }, `` Function definitions'' ). It should be
431431called with an argument
432432list containing the same number of items as the function's formal
433433parameter list.
@@ -601,8 +601,8 @@ \section{The standard type hierarchy\label{types}}
601601\end {description }
602602
603603\item [Modules]
604- Modules are imported by the \keyword {import} statement (see section
605- \ref {import }, `` The \keyword {import} statement'' ).
604+ Modules are imported by the \keyword {import} statement (see
605+ section~ \ref {import }, `` The \keyword {import} statement'' ).
606606A module object has a namespace implemented by a dictionary object
607607(this is the dictionary referenced by the func_globals attribute of
608608functions defined in the module). Attribute references are translated
@@ -637,8 +637,8 @@ \section{The standard type hierarchy\label{types}}
637637\indexii {module}{namespace}
638638
639639\item [Classes]
640- Class objects are created by class definitions (see section
641- \ref {class }, `` Class definitions'' ).
640+ Class objects are created by class definitions (see
641+ section~ \ref {class }, `` Class definitions'' ).
642642A class has a namespace implemented by a dictionary object.
643643Class attribute references are translated to
644644lookups in this dictionary,
@@ -708,7 +708,7 @@ \section{The standard type hierarchy\label{types}}
708708
709709Class instances can pretend to be numbers, sequences, or mappings if
710710they have methods with certain special names. See
711- section \ref {specialnames }, `` Special method names.''
711+ section~ \ref {specialnames }, `` Special method names.''
712712\obindex {numeric}
713713\obindex {sequence}
714714\obindex {mapping}
@@ -865,7 +865,7 @@ \section{The standard type hierarchy\label{types}}
865865level a traceback object is inserted in front of the current
866866traceback. When an exception handler is entered, the stack trace is
867867made available to the program.
868- (See section \ref {try }, `` The \code {try} statement.'' )
868+ (See section~ \ref {try }, `` The \code {try} statement.'' )
869869It is accessible as \code {sys.exc_traceback}, and also as the third
870870item of the tuple returned by \code {sys.exc_info()}. The latter is
871871the preferred interface, since it works correctly when the program is
@@ -1211,21 +1211,21 @@ \subsubsection{More attribute access for new-style classes \label{new-style-attr
12111211value or raise an \exception {AttributeError} exception.
12121212In order to avoid infinite recursion in this method, its
12131213implementation should always call the base class method with the same
1214- name to access any attributes it needs to access , for example,
1214+ name to access any attributes it needs, for example,
12151215\samp {object.__getattribute__(self, name)}.
12161216\end {methoddesc }
12171217
12181218\subsubsection {Implementing Descriptors \label {descriptors } }
12191219
12201220The following methods only apply when an instance of the class
1221- containing the method (a so-called \emph {descriptor } class) is in
1221+ containing the method (a so-called \emph {descriptor } class) appears in
12221222the class dictionary of another new-style class, known as the
12231223\emph {owner } class. In the examples below, `` the attribute'' refers to
1224- the attribute whose name is the key of the property in the accessed
1224+ the attribute whose name is the key of the property in the owner
12251225class' \code {__dict__}.
12261226
12271227\begin {methoddesc }[object]{__get__}{self, instance, owner}
1228- Called to get the attribute of the owner class (class attribute acess )
1228+ Called to get the attribute of the owner class (class attribute access )
12291229or of an instance of that class (instance attribute acces).
12301230\var {owner} is always the owner class, while \var {instance} is the
12311231instance that the attribute was accessed through, or \code {None} when
0 commit comments